Title: Analytics customization
Last modified: August 31, 2016

---

# Analytics customization

 *  Resolved [teaperson2000](https://wordpress.org/support/users/teaperson2000/)
 * (@teaperson2000)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/analytics-customization/)
 * Is it possible to add custom variables for Google Analytics? I’d like to be able
   to use a custom variable that I have defined to track some of the metadata of
   the page.
 * I’d also like to be able to set a custom variable to track how many AMP pages
   are being viewed (and then be able to look at session length and things like 
   that).
 * If not, is it possible to filter your code after it is output, so that I could
   add the code in myself?
 * I should add that I love this plugin and it is saving me a lot of work. Thanks.
 * [https://wordpress.org/plugins/pagefrog/](https://wordpress.org/plugins/pagefrog/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [pagefrog](https://wordpress.org/support/users/pagefrog/)
 * (@pagefrog)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/analytics-customization/#post-7116333)
 * Hi teaperson2000,
 * Mike here from PageFrog—happy to help! AMP pages actually behave the same way
   as regular pages, so you should be able to use your conventional methods of tracking
   all the same.
 * You can track AMP pages by segmenting /amp as a URL parameter. You should be 
   able to customize your analytics the same way as you’ve always done for your 
   new AMP pages.
 * Try it out and let me know how it goes!

Viewing 1 replies (of 1 total)

The topic ‘Analytics customization’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pagefrog_4e5371.svg)
 * [Facebook Instant Articles & Google AMP Pages by PageFrog](https://wordpress.org/plugins/pagefrog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pagefrog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pagefrog/)
 * [Active Topics](https://wordpress.org/support/plugin/pagefrog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pagefrog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pagefrog/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pagefrog](https://wordpress.org/support/users/pagefrog/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/analytics-customization/#post-7116333)
 * Status: resolved