Profile

Cover photo
Steve Chapman
70 followers|138,640 views
AboutPosts

Stream

Steve Chapman

General Questions  - 
 
I have a quick question... when setting page code for eCommerce dataLayer entries on a thankyou page, if all the dataLayer entries go in at the start of the <body> before the main GTM code - as per guide standards, but at the start of the GTM code the developers have left a bit in that says:
<script>
var dataLayer = [];
</script>
Will the presence of this bit effectively overwrite the transaction data that has just been fed in by re-creating a blank dataLayer?

Thanks in advance
1
Steve Chapman's profile photoDoug Hall's profile photo
6 comments
 
Here's a container script:

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-ABCDE"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-ABCDE');</script>
<!-- End Google Tag Manager -->

This bit (w[l]=w[l]||[]) is the same as window.dataLayer = window.dataLayer || [];

So, no GTM isn't putting dataLayer = []; in. That would be dumb.

the snippet below is in some docs but is not good practice
<script>
var dataLayer = [];
</script>

In English window.dataLayer = window.dataLayer || []; means:
'make my dataLayer variable the same as the one that exists IF it exists. If it DOESN't exist, only then do I want an empty array.

Hope that makes the JavaScript a little clearer but the devs need to respect variables declared prior to the container script. It's in the container code in the right way.

D
Add a comment...

Steve Chapman

Questions  - 
 
Weird behaviour from annotation speech bubbles.

Is anyone else finding that the annotation speech bubbles displayed on the timeline graphs go missing, unless you change the zoom level of the browser? (Chrome Version 34.0.1847.11 beta-m). Has only really started happening today as far as I can tell.

If you then change the information plotted, the graph refreshes as normal, and the speech bubbles go missing again, so I have to adjust the zoom level again.

Very odd..
1
Stephen dodds's profile photo
 
yup happened for me this morning - went back in and edited text and saved again and that seemed to do it
Add a comment...

Steve Chapman

Questions  - 
 
Quick question for any Advanced Filter gurus out there...

I have a site whereby page addresses conform to the following general appearance:-

http://www.randomsite.com/home/

The standard format of all pages is to have the trailing forward slash at the end. This is fine.

However,  if links are shared which omit the trailing forward slash, they still execute as a page, and Google Analytics then reports two variants of the same page:

http://www.randomsite.com/home/
http://www.randomsite.com/home

i.e. one with the trailing slash, and one without. This is not helpful.

Our web developers have provided a quote to put something in place in the CRM that will add a trailing slash to all page requests, respecting any query parameters that might also be part of the Request URI.

My gut feeling is that I might also be able to get round this by way of Advanced Filters. Would anyone have any suggestions?

Thanks

Steve
6
Simo Ahava's profile photoSteve Chapman's profile photo
2 comments
 
Thanks Simo,
 
I've followed the instructions and while the first part of the resolution seems to work, but the second part which accounts for the existence of a query parameter doesn't seem to work.

If I enter http://www.randomsite.com/test

GA successfully re-writes the url in the system to:

http://www.randomsite.com/test/

But if I enter http://www.randomsite.com/test?query=1

GA doesn't seem to be changing anything.

I have tried changing the filter order to put the second query at the top, and vise versa, but it made no difference.


The chap who authored the article did suggest that it is preferable to have the url re-write at Server level if possible, so I might still get that done.

Cheers

Steve
Add a comment...

Steve Chapman

General Questions  - 
 
GTM, Universal Analytics and browser compatibilities for e-Commerce.

I am the process of working with a development agency with a new site that launches next week. I am using GTM and have GUA in place. Everything seems to be tracking ok, but I am testing the e-Commerce aspect of it, and am finding that different mobile browsers are not tracking. 

I am using a Nexus 7 (2013), a Nexus 10, a Nexus 4 and an iPad for testing. On the various Nexus devices, I cannot get eCommerce transactions to track through using Opera, Firefox or Chrome. It does however track using Dolphin Beta. The visits themselves track ok, just not the transaction.

On the iPad I have tested with Safari and that tracks eCommerce fine.

Does anyone have any pointers that I can go back to the Agency with that might help solve this problem?

Cheers

Steve
1
Simo Ahava's profile photoSteve Chapman's profile photo
11 comments
 
Thanks for looking into it.

I am wondering if the issue is more to do with your first theory, in that perhaps waiting for GTM.Dom isn't waiting long enough for some of the android browsers, and that maybe coming up with another event that fires after the transaction information has been created might be a better alternative.

Getting the Agency to interpret this is another matter though....

Thanks for your help.
Add a comment...

Steve Chapman

Questions  - 
 
Good morning GA community. I am just about to start properly using Universal Analytics on a site that is launching next month. I am going to use GTM to deploy. We also have a legacy Web Shop on a separate domain which will be linked to from the main site.

I intend to use a separate GTM container for the Web Shop, but am I best to use the same UA tracking code for both sites, or do I need one code for the main site, and one code for the Web Shop? I would like to be able to report end-to-end user journeys.

For our current configuration, I am using the same GA code but with different "_setDomainName" fields, then splitting the different sites out by their hostname. I'm not sure if UA works the same way.

Any pointers please?
1
Stephane Hamel (inactive)'s profile photoSteve Chapman's profile photo
4 comments
 
Thanks Stéphane, much appreciated.
Add a comment...

Steve Chapman

Questions  - 
 
Using GA, what would be the best method to track a button located within an iFrame on a webpage? The contents of the iFrame are an email signup form hosted by an email management provider. Pressing the 'submit' button only causes the iFrame content to change.
1
Julien Coquet's profile photoJames Dadd's profile photoSteve Chapman's profile photo
4 comments
 
Thanks both for your input. In a way, it's comforting to know that I'm in good company with like-minded iFrame haters.

I am going to attempt to persuade those in control of the iFrames to have the 'Submit' button navigate to a "thank you" page of some description on the parent site, so at least I could track that.

We are in the throws of a major web re-build anyway, so I'm hoping a combination of GTM, Universal Analytics, and no bloomin' iFrames will be a solution not too far away for me.
Add a comment...
Have them in circles
70 people
anita traore's profile photo
Zorin Radovancevic's profile photo
Susan Talsma's profile photo
Melody Paxton's profile photo
Nikhil Raj's profile photo
Jordy van Gent's profile photo
rion marianto's profile photo
Sam C's profile photo
Shafiuddean Choudry's profile photo

Steve Chapman

Questions  - 
 
Anyone else having issues with automated .csv reports coming through as "default_filename" as of Saturday 10th May?
1
Damion Brown's profile photoSteve Chapman's profile photo
4 comments
 
The problem has mysteriously been fixed - no word from Google as to what the issue was.
Add a comment...

Steve Chapman

Questions  - 
 
I've used In-Page Analytics to some success in the past couple of years (fully accepting its limitations), but since moving to a new site and implementing Universal Analytics via Google Tag Manager, I have been unable to get In-Page Analytics to work. I am currently getting the below message, stating that it doesn't load ga.js from Google (which is true, as I am not using old GA, I'm using analytics.js), and also states that it can't find a tracking snippet on the site, which is strange because it loads via GTM.

If I choose "Load in Full View" It attempts to bring up the page, but I get a bright yellow banner at the top which states "Access Denied [...]"

Does anyone have any suggestions?

Has anyone else had any difficulties getting this to work in a similar set-up?

Thanks

Steve
4
2
Sean Riordan's profile photoEllen Edmands's profile photoAnura Upali Hettiarachchi's profile photoSun Young Kim's profile photo
10 comments
 
Just went searching for an answer to this same exact issue. Thanks +Sean Riordan !
Add a comment...

Steve Chapman

Questions  - 
 
I'm attempting to try out Google Consumer Survey's free Satisfaction survey on a site, deploying the code via a Custom HTML tag on Google Tag Manager. The tag fired but I'm not seeing the survey at all.

Has anyone had any joy doing this?

It's a UK site with a mainly UK audience. I thought the survey functionality was rolled-out for US and UK visitors, or have I misread the terms and it's strictly US visitors only?
1
Add a comment...

Steve Chapman

Discussion  - 
 
Question for the masses: I recently had my phone stolen, so I changed all my account passwords, including Evernote using my PC. I also have a tablet with Evernote on it, and much to my amazement, it was still able to access, update, change, delete all of my Evernote content without ever noticing that my account password has changed. Even a reboot of the tablet didn't change things. Only a sign-out of Evernote itself would prompt the change, but who does that? Presumably if the thief got through my screenlock on the phone, he could be browsing my entire Evernote content as we speak? Am I missing something or is this how it works? Is there some setting I've overlooked which requires Evernote to check the security credentials before opening any note?
2
1
Steve Chapman's profile photoH.U. Graedener's profile photoNicholas Miceli's profile photo
7 comments
 
Evernote's Android app itself has the PIN feature inside its settings (maybe a premium feature, I don't know). I do not know the app 'App Lock', sorry, can't comment on this.
Add a comment...
People
Have them in circles
70 people
anita traore's profile photo
Zorin Radovancevic's profile photo
Susan Talsma's profile photo
Melody Paxton's profile photo
Nikhil Raj's profile photo
Jordy van Gent's profile photo
rion marianto's profile photo
Sam C's profile photo
Shafiuddean Choudry's profile photo
Links
Work
Occupation
Performance Analyst
Skills
Analytics, Adwords, SAP Business Objects
Apps with Google+ Sign-in
  • Monument Valley