Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #79668

    Arthur K
    Participant

    And where do I place Google Analytics?

    Thanks!

    #79671

    Cousett
    Member

    Hi 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/

    #79691

    Arthur K
    Participant

    What about retargeting pixels? That is my priority of google anaylitics. but thanks for that too

    #79699

    Kosher K
    Member

    Hi 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> tag

    Hope 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

    #79812

    Arthur K
    Participant

    oh complicated!

    #79818

    Cousett
    Member

    Try to add the code and contact us if you need additional help.

    #79820

    Arthur K
    Participant

    (no sarcasm)

    #79872

    Cousett
    Member

    We 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.

    #682533

    Ken
    Participant
    This reply has been marked as private.
    #682607

    Rad
    Moderator

    Hi 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!