Tagged: x
-
AuthorPosts
-
April 15, 2016 at 6:10 am #884114
petermayerlaParticipantHi guys,
I want to input tracking in my website.
My tracking provider gave me the tracking js.
It’s supposed to be here:
Add it in your CMSIn this instance you will want to find the file for the footer of your website (in WordPress that is footer.php for example) and place the code above the closing body tag, </body>
Can you tell me where I can find this in your theme or how you would suggest to do so?
April 15, 2016 at 4:59 pm #884931
RadModeratorHi there,
Thanks for posting in.
Please add this code to your child theme’s functions.php with your tracking code.
add_action('wp_footer', 'my_tracking_code', 9999); function my_tracking_code() { ?> <!--replace this line with your tracking code--> <?php }Hope this helps.
April 25, 2016 at 6:59 am #898496
petermayerlaParticipantThis reply has been marked as private.April 25, 2016 at 1:31 pm #899065
RupokMemberHi there,
Thanks for writing back. Your code seems correct and should work. You can also check this plugin that gives more easy option to add custom script to header and footer – https://wordpress.org/plugins/header-and-footer-scripts/
Hope this helps.
Cheers!
April 27, 2016 at 9:09 am #902216
petermayerlaParticipantThis reply has been marked as private.April 27, 2016 at 9:28 am #902251
petermayerlaParticipantThis reply has been marked as private.April 27, 2016 at 4:00 pm #903028
FriechModeratorGlad we could help, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-884114 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
