-
AuthorPosts
-
August 7, 2014 at 7:49 am #79668
And where do I place Google Analytics?
Thanks!
August 7, 2014 at 7:52 am #79671Hi Arthur,
Thanks for writing in!
The easiest way to integrate Google Analytics is to get the plugin that integrates with WordPress – https://wordpress.org/plugins/google-analytics-for-wordpress/August 7, 2014 at 8:24 am #79691What about retargeting pixels? That is my priority of google anaylitics. but thanks for that too
August 7, 2014 at 8:27 am #79699Hi Arthur,
you can add it like this.
function your_pixel_script() { ?> <!-- ADD YOUR CODE BELOW --> <!-- DO NOT ADD ANYTHING BELOW THIS LINE--> <?php } add_action( 'wp_footer', 'your_pixel_script' );
Then paste it on your child theme functions.php
You can also add the script in Customizer -> Custom -> Javascript,
However, you need to remove the opening
<script>
and closing</script>
tagHope that helps.
Cheers
EDIT: you can only use the Customizer -> Custom -> javascript if you’re using javascript for retargetting.
If its an image pixel then you need to use the child theme functions
August 7, 2014 at 10:28 am #79812oh complicated!
August 7, 2014 at 10:34 am #79818Try to add the code and contact us if you need additional help.
August 7, 2014 at 10:34 am #79820(no sarcasm)
August 7, 2014 at 12:11 pm #79872We did not mean this in sarcasm at all, we are here and happy to help. I apologize if the post was interpreted the wrong way. Send us your login credentials and we will be happy to assist you further with the javascript.
November 28, 2015 at 8:52 pm #682533This reply has been marked as private.November 28, 2015 at 11:25 pm #682607Hi there,
It should be just like this,
var ssaUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'pixel.sitescout.com/iap/b29dfdb51cdd29c0';new Image().src = ssaUrl;
Cheers!
-
AuthorPosts