0% found this document useful (0 votes)
8 views1 page

Google Analytics PHP Integration Guide

This document provides instructions for implementing Google Analytics tracking code on a website. It includes the JavaScript tracking code to paste into files or templates. It also offers options for dynamic content implementation using includes or templates, and recommends using Google Tag Manager for managing multiple analytics tags.

Uploaded by

Ravi Vaka
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Google Analytics PHP Integration Guide

This document provides instructions for implementing Google Analytics tracking code on a website. It includes the JavaScript tracking code to paste into files or templates. It also offers options for dynamic content implementation using includes or templates, and recommends using Google Tag Manager for managing multiple analytics tags.

Uploaded by

Ravi Vaka
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

9/4/2016

Analytics
FLYOPUS

All Web Site Data


HOME

REPORTING

CUSTOMIZATION

ADMIN

wanttotrack.
TrackingCode
DataCollection
UserID
SessionSettings
OrganicSearchSources
ReferralExclusionList
SearchTermExclusionList

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=ri[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*newDate()a=[Link](o),
m=[Link](o)[0][Link]=[Link]=[Link](a,m)
})(window,document,'script','[Link]
ga('create','UA836519501','auto')
ga('send','pageview')
</script>

PRODUCTLINKING

AdWordsLinking
AdSenseLinking
AdExchangeLinking
AllProducts

PHPImplementation

OPTIONAL

Usethecodeabovetocreateafilenamed"[Link]",andincludethefileoneachPHP
templatepage.
Addthefollowinglinetoeachtemplatepageimmediatelyaftertheopening<body>tag:
<?phpinclude_once("[Link]")?>

DynamicContentImplementation

OPTIONAL

Useacommonincludeortemplatetopastethecodeaboveinsteadofmanuallyaddingittoeverypage.
Postbacks
AudienceDefinitions
CustomDefinitions

GoogleTagManager
OurfreetoolGoogleTagManagercanhelpyouaddtagstoyoursiteifyouhavemanyanalyticsandtracking
[Link]:
Youusemultipleanalyticsandadperformancetrackingtoolsthatrequiresitetags.
Addingtagstoyourwebsiteslowsdownyourabilitytorunmarketingcampaigns.

[Link]

1/1

You might also like