Support » Plugin: Google Analyticator » Demographics "one time code change"

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’d like this, too.

    esmi

    (@esmi)

    Forum Moderator

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

    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!

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

    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.

    Thanks woodardj for informing us about it. 🙂

    Correct.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Demographics "one time code change"’ is closed to new replies.