Title: Add lines to Analytics code
Last modified: March 30, 2017

---

# Add lines to Analytics code

 *  Resolved [MariusG](https://wordpress.org/support/users/marius_codeinwp/)
 * (@marius_codeinwp)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/add-lines-to-analytics-code/)
 * Hey Dan,
 * Is it possible to edit or add more lines in the GA code?
 * I’d like to use [Google Optimize](https://analytics.googleblog.com/2017/03/this-is-not-a-test-google-optimize-now-free-for-everyone.html)
   on a website where I’m using this plugin, but I’m supposed to add a line such
   as this to enable it:
    `ga('require', 'GTM-******');`
 * It would be the same for enable Ecommerce, probably other features as well.
 * If it’s not possible, it’d be cool to see this added in a future version. For
   everyone who wants to use more than the default GA code, it’s pretty much a deal
   breaker.
 * Thank you,
    Marius

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/add-lines-to-analytics-code/#post-8980423)
 * Hi Marius,
 * Thanks for the suggestion. I should really add such a feature to the plugin, 
   it’s a bit difficult to create, though. As there is for some function a certain
   order in which to put them. So I’ll have to come up with a solution for that.
 * Maybe you can hand me a list of functions you’d like to use, with an example 
   of what the analytics snippet would look like?

Viewing 1 replies (of 1 total)

The topic ‘Add lines to Analytics code’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/add-lines-to-analytics-code/#post-8980423)
 * Status: resolved