Title: Google analytics source
Last modified: October 5, 2017

---

# Google analytics source

 *  Resolved [buzzwebzine](https://wordpress.org/support/users/buzzwebzine/)
 * (@buzzwebzine)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-source/)
 * 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](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](https://wordpress.org/support/users/ozthegreat/)
 * (@ozthegreat)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-source/#post-9559360)
 * Hi [@buzzwebzine](https://wordpress.org/support/users/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](http://jesscarranza.blogspot.co.uk/2017/09/facebook-instant-articles-google-analytics-gtag-js.html)
   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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-native-articles_fdfefd.svg)
 * [WP Native Articles - Instant Articles Plugin for WordPress](https://wordpress.org/plugins/wp-native-articles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-native-articles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-native-articles/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-native-articles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-native-articles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-native-articles/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [OzTheGreat](https://wordpress.org/support/users/ozthegreat/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-source/#post-9559360)
 * Status: resolved