• Where in the plugin can we change this????

    To implement Remarketing or GDN Impression Reporting, replace the bold text in this example:

    <script type=”text/javascript”>
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-xxxxx-y’]);
    _gaq.push([‘_trackPageview’]);
    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;

    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘https://www&#8217;) + ‘.google-analytics.com/ga.js’;

    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>
    with the bold text in the example below:

    <script type=”text/javascript”>
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-xxxxx-y’]);
    _gaq.push([‘_trackPageview’]);
    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;

    ga.src = (‘https:’ == document.location.protocol ? ‘https://&#8217; : ‘https://&#8217;) + ‘stats.g.doubleclick.net/dc.js’;

    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>

    https://www.ads-software.com/plugins/google-analytics-for-wordpress/

Viewing 15 replies - 16 through 30 (of 33 total)
  • +1

    Bob Bacon

    (@bobbacon)

    I implemented the above code changes and nothing broke but GA still says, “Your Analytics tracking code does not include the necessary support for the Demographics and Interest reports.”

    The beauty of Yoast’s plugin is that you don’t have to add tracking code to each page or header.

    Still waiting for an elegant solution…

    emips

    (@emips)

    arcware: Thank you so much!

    bobbacon: After making arcware’s changes, nothing changed for me either – so I deactivated & reactivated the plugin, and now it’s working.

    +1

    Would be great if this could be added to the options page.

    emips:

    Will you be possible to see the change from the html code side? I just did what arcware recommended but when I pressed F12 on the web, I can see any change in my html codes. Thank you so much!

    Thank you Arcware – it worked for me.

    arcware and emips tips worked for me.

    As an added measure, I cleared all my caches in w3ctotalcache after making the change and deactivating/reactivating Yoast.

    Thanks!

    Thanks Arcware! worked for me as well!

    +1 for adding support natively. Not sure I’m a big fan of editing plugins as it will probably get overwritten when somebody else updates the plugin.

    I noticed once I made edits to the code that google analytics reporting of search engine traffic dropped significantly. I made the edits in 4.3.4, and am changing the code back to see if it’s the cause for the drop.

    No doubt modifying the plugin code will work, but then you have to worry about overwriting those changes when the plugin is updated. Instead, consider using the Real-Time Find and Replace plugin (disclosure: this is my plugin) that allows you to swap out code after the page is rendered in real-time. No permanent changes to plugins or themes required.

    I’ve implemented the above solution and it works fine.

    Silence coming from Yoast…

    Just logged in to make sure you were all on this! lol… thanks

    +1 for Demographics support.

    You’d think after 3 months, we’d get a response from Yoast.

    Time to use another plugin?

    +1 for native support.

    For the record, the hack worked for me too!

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Demographics and Interest Reports for Google Analytics’ is closed to new replies.