Google Analyticator
[resolved] Demographics "one time code change" (8 posts)

  1. Angie Meeker
    Posted 2 years ago #


    To enable Demographics reporting in GA, our account says we need to implement a one time change to our GA code (details in the link above). Where can we make that change in this plugin so that it's not overwritten each time there is an update, or can you incorporate that change into the plugin somehow and update?


  2. kgforce
    Posted 2 years ago #

    I'd like this, too.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    @kgforce: If you require assistance then, as per the Forum Welcome, please post your own topic.

  4. woodardj
    Posted 2 years ago #

    Just went to make this change with the WP's Plugin editor, and discovered its already available, as part of the "Enable Remarketing" plugin setting. I enabled that, and now I'm getting the proper ga tracking code for Demographics.


  5. temafrank
    Posted 2 years ago #

    So other than enabling remarketing you didn't have to change anything? Didn't have to put new code somewhere?

  6. woodardj
    Posted 2 years ago #

    Correct… if you peek in the Plugin editor for Google Analyticator (something like this: /wp-admin/plugin-editor.php?file=google-analyticator/google-analyticator.php)

    You'll find this code near the bottom of the code file:

    <?php if( get_option( key_ga_remarketing ) ) : ?>
                    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
                    <?php else: ?>
                    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    		<?php endif; ?>

    Which basically reads "if remarketing is enabled, use the doubleclick analytics code, otherwise, use the google-analytics code", which is all the change amounts to in the google support article linked above.

    I changed nothing else, and now the Demo dashboard is accessible for me in Google Analytics.

  7. greenmoon44
    Posted 2 years ago #

    Thanks woodardj for informing us about it. :)

  8. Video User Manuals
    Posted 2 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.