Load Google Analytics Tracking Script From Your Functions File

This tutorial provides both the sample.js file and PHP code which enable you to load your tracking script from your functions file.

This way you have total control over both which pages you want tracked and the position the script loads on the page.

There’s 2 simple steps to take:

One response to “Load Google Analytics Tracking Script From Your Functions File”

  1. […] Load Google Analytics Tracking Script From Your Functions File – Both the sample.js file and PHP code to enable you to load your tracking script from your functions file. This way you have total control over both which pages you want tracked and the position the script loads on the page. […]

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.