• Resolved buzzwebzine

    (@buzzwebzine)


    Hello,

    I use your plugin for buzzwebzine.fr and it working fine.

    I just have an issue with analytics. The tag is working but visits source are count as (direct).
    I would like change it to m.facebook.com or apps.facebook.com.

    In the admin analytics field I put this :
    <!– Global Site Tag (gtag.js) – Google Analytics –>
    <script src=”https://www.googletagmanager.com/gtag/js?id=UA-33856524-1″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments)};
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-XXXX’);
    </script>

    Do you know how I can change the source from (direct) to m.facebook.com or apps.facebook.com ?

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author OzTheGreat

    (@ozthegreat)

    Hi @buzzwebzine,

    I’m not that familiar with global site tag I’m afraid. With normal GA you can just set the params like thus:

    ga('set', 'campaignSource', 'Facebook');
    ga('set', 'campaignMedium', 'Social Instant Article');
    ga('set', 'title', 'FBIA: '+ia_document.title);

    A brief look around the internet and this article suggests the same can be done with gtag, try adding this before your final gtag(‘config’, ‘UA-XXXX’); script.

    gtag('set', 'page_title', 'Instant Articles: '+ia_document.title);

    I hope that helps!!

    All the best

Viewing 1 replies (of 1 total)

The topic ‘Google analytics source’ is closed to new replies.