Tagged: x
-
AuthorPosts
-
October 3, 2016 at 4:32 pm #1201061
cece101ParticipantHello. I want to add analytics tracking code to all pages:
what is the best way to do this? Thanks!
website – buildmywordpresswebsite.com
October 3, 2016 at 6:42 pm #1201192
JadeModeratorHi there,
You may add this code in the functions.php in the child theme:
add_action ('wp_head', 'my_script', 9999); function my_script () { ?> <!-- LeadFormix --> <script type="text/javascript"> var pkBaseURL = (("https:" == document.location.protocol) ? "https://vlog.leadformix.com/" : "http://vlog.leadformix.com/"); <!-- bf_action_name = ''; bf_idsite = 7925; bf_url = pkBaseURL+'bf/bf.php'; (function() { var lfh = document.createElement('script'); lfh.type = 'text/javascript'; lfh.async = true; lfh.src = pkBaseURL+'bf/lfx.js'; var s = document.getElementsByTagName('head')[0]; s.appendChild(lfh); })(); //--> </script> <!-- /LeadFormix --> <?php }Hope this helps.
October 6, 2016 at 1:28 pm #1205502
cece101Participantok. done. i will let you know if i have any problems. Thanks.
October 6, 2016 at 1:44 pm #1205529
Prasant RaiModeratorSure, let us know how it goes.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1201061 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
