Analytics
2.5K members online now
2.5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Revamped Website with Google DFP: Page Views in Analytics VERY HIGH

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I've just launched my new website (new look with DFP but website has been in existence for a while). Racingdudes.com is the website.

 
Everything seems to be working great on all fronts except since launching my page views in Google Analytics have blown up. I do now use infinite scroll which knew that would increase some but I had a 200% increase overnight! I have done some testing using the live Analytics and it seems somehow single page views are getting counted more than once. Please help. 
 
Here is the DFP coding I have in my <head>:
 
<script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src=(useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>

<script type='text/javascript'>
googletag.cmd.push(function() {

var mappingLeaderboard = googletag.sizeMapping().
addSize([1024, 768], [970, 90]).
addSize([980, 690], [728, 90]).
addSize([500, 500], [468, 60]).
addSize([1, 1 ], [320, 50]).
build();

var mappingarticleleaderboard = googletag.sizeMapping().
addSize([500, 500], [468, 60]).
addSize([1, 1 ], [320, 50]).
build();

var mappinghomeleaderboard = googletag.sizeMapping().
addSize([1550, 690], [728, 90]).
addSize([500, 500], [468, 60]).
addSize([1, 1 ], [320, 50]).
build();

var mappingfreepicks = googletag.sizeMapping().
addSize([980, 690], [728, 90]).
addSize([500, 500], [468, 60]).
addSize([1, 1 ], [320, 50]).
build();

var mappingracedates = googletag.sizeMapping().
addSize([980, 690], [728, 90]).
addSize([500, 500], [468, 60]).
addSize([1, 1 ], [320, 50]).
build();

googletag.defineSlot('/107618585/RacingDudes_Article_Bottom_Leaderboard', [[320, 50], [300, 50], [468, 60], [300, 75], [728, 90]], 'div-gpt-ad-1454660458139-0').defineSizeMapping(mappingarticleleaderboard).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Article_Sticky_Square', [[300, 600], [300, 250]], 'div-gpt-ad-1454660458139-1').addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Article_Top_Leaderboard', [[320, 50], [300, 50], [468, 60], [300, 75], [728, 90]], 'div-gpt-ad-1454660458139-2').defineSizeMapping(mappingarticleleaderboard).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Footer_Leaderboard', [[320, 50], [1600, 120], [468, 60], [970, 90], [728, 90]], 'div-gpt-ad-1454660458139-3').defineSizeMapping(mappingLeaderboard).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_FreePicks_Middle_Top_Leaderboard', [[320, 50], [300, 50], [468, 60], [300, 75], [728, 90]], 'div-gpt-ad-1454660458139-4').defineSizeMapping(mappingfreepicks).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Header_Leaderboard', [[320, 50], [1600, 120], [468, 60], [970, 90], [728, 90]], 'div-gpt-ad-1454660458139-5').defineSizeMapping(mappingLeaderboard).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Home_LatestNews_Square', [[300, 600], [300, 250]], 'div-gpt-ad-1454660458139-6').addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Home_Middle_Middle_Leaderboard', [[320, 50], [300, 50], [468, 60], [300, 75], [728, 90]], 'div-gpt-ad-1454660458139-7').defineSizeMapping(mappinghomeleaderboard).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_Home_Middle_Top_Leaderboard', [[320, 50], [300, 50], [468, 60], [300, 75], [728, 90]], 'div-gpt-ad-1454660458139-8').defineSizeMapping(mappinghomeleaderboard).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_RaceDates_Middle_Top_Leaderboard', [[320, 50], [300, 50], [468, 60], [300, 75], [728, 90]], 'div-gpt-ad-1454660458139-9').defineSizeMapping(mappingracedates).addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_RightSidebar_Above_Square', [[300, 600], [300, 250]], 'div-gpt-ad-1454660458139-10').addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_RightSidebar_Sticky_Pages_Square', [[300, 600], [300, 250]], 'div-gpt-ad-1454660458139-11').addService(googletag.pubads());
googletag.defineSlot('/107618585/RacingDudes_RightSidebar_Sticky_Square', [[300, 600], [300, 250]], 'div-gpt-ad-1454660458139-12').addService(googletag.pubads());
googletag.enableServices();
});
</script>
 
I asked this same question in the DFP help and they assured me DFP would not cause this.
 
For Analytics I'm using a plugin called All in One SEO and simply plugged in my Google Analytics ID. What am I doing wrong? Do I still need to include Google Analytics or does the DFP code work alone? 
 
It's worth noting that my sessions and users stayed about the same. Just the pages/session is what has blown up. Thanks!