WordPress.org

Forums

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

  1. Angie Meeker
    Member
    Posted 1 year ago #

    https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad

    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?

    http://wordpress.org/plugins/google-analyticator/

  2. kgforce
    Member
    Posted 1 year ago #

    I'd like this, too.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

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

  4. woodardj
    Member
    Posted 1 year 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.

    Cheers!

  5. temafrank
    Member
    Posted 1 year ago #

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

  6. woodardj
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thanks woodardj for informing us about it. :)

  8. Video User Manuals
    Member
    Plugin Author

    Posted 1 year ago #

    Correct.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analyticator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.