Profile

Cover photo
Verified name
Andy Scott
Works at Perficient
Attends Hard Knocks University
1,851,760 views
AboutPostsCollections

Stream

Andy Scott

Shared publicly  - 
 
 
Re-Introducing the Periodic Table of Google Analytics (2016 Edition)


Greetings friends! I’ve got some real exciting news for you.
The 2016 edition of the Periodic Table of Google Analytics is now alive on Jeffalytics. This interactive table features 189 elements that describe the power of everything we can do with Google Analytics.

View the interactive ...

https://www.jeffalytics.com/periodic-table-of-google-analytics-2016/?utm_source=Google%2B&utm_medium=social&utm_campaign=SNAP_Jeff+Sauer+G%2B&utm_content=Re-Introducing+the+Periodic+Table+of+Google+Analytics+%282016+Edition%29
View original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
Don't use dataLayer in Data Layer Variables
 
SOLVED: dataLayer formatting off?

So the "on page load" dataLayer looks approximately like this

dataLayer = [{
'stuff':'and things',
'otherStuff': {'nested':'items', 'whatNots':'and such'},
'amIDoin':'this right?'
}]

and I can run console commands like
dataLayer[0].otherStuff.nested which will output items but in GTM when using "dot notation" for a dataLayer variable like dataLayer.0.otherStuff.nested is undefined...what'd I screw up?
3 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
When the form submitted, can I get the selected gender with DOM Element Variable or I should create Custom JS Variable for that?

I've tried select option:selected but it returns false
5 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Better QA With Google Tag Manager Environments

GTM published a huge update just today. Environments lets you create a setup in Google Tag Manager, to which you can publish container versions. You can share the preview link for this setup, or authenticate this setup with a special container snippet you add to the site template. If someone is authenticated against an environment, they can access any versions that are published there.

In other words, this is a huge boost to container workflow, as you can pass a version through various environments (dev, QA, staging) before pushing it live.

The major difference to the old "Share Preview" link is that the preview sharing shared container versions, so if you created a new version you had to distribute a new link. Now you share environments, and you only need to distribute the authentication token once (unless access is revoked).

Read the guide, and start working in environments!

#gde #googletagmanager #blogpost #gtmtips 
A walkthrough of the Environments feature in Google Tag Manager.
View original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Need something to do this weekend? Here's 12 of the Best Resources to Learn to Code for Free http://seer.is/1O1rzBq
View original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
Grabbing Google Analytics clientID and trackingID from the console

So I've been playing around with the the console a bit more (specifically chrome) and wondered how I would query a site to get GA data such as trackingID or clientID. Sure this data is easily found in some plugins or looking at the stored cookie values but sometimes its just fun to see what you can pull from a command line interface. *cracks knuckles like I'm about ready to hack into Fort Knox* After a some searching I found the solution here.  You can do this by using the ga() command queue. (https://developers.google.com/analytics/devguides/collection/analyticsjs/command-queue-reference)

Provided you only have one GA tracking ID you can use 

ga.getAll()[0].get('clientId');

if you have more just change the index value from 0 to the one that matches the tracking ID you need.  If you don't know your trackingID...you can find out with this console query...

ga.getAll()[0].get('trackingId'); //again change index value as needed.

As a side note, if you're looking to scoop up the clientID into a custom dimension +Simo Ahava has a great guide with a more elegant GTM solution found here: http://www.simoahava.com/analytics/improve-data-collection-with-four-custom-dimensions/#2 
Track Google Analytics user ID when the visitor is not logged in your website for later customer life-cycle analysis by matching it with your CRM IDs.
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Are you Focused on Your Site's Page Speed?

Here's how Michael King sped up his site by 68.35% with just one line of code! Learn more about the rel-prerender directive here: http://raven.im/1SMrnto #SEO
View original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
Awesome post on tracking biometric feedback using FitBit and IFTTT...probably quite easy to adapt to Google Fit if you use that sort of thing.
 
IFTTT can be used to send your daily Fitbit stats to Google Analytics. I've posted up a method to get it working, and also methods for tracking your music listening and alcohol consumption in GA too.
I’ve been interested for some time in the idea of tracking my life with Google Analytics. Let me take a step back for a moment. I’m in no way wanting to track myself to the depth and intricacy that Stephen Wolfram does. And while I like the idea of something like Exist, which pulls all sorts …
4 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Hi,

what is the best way to call a function inside a Variable (custom js)?

Example:
function() {

    function Encrypt(str) {
       foo = str + '-' + string2;
       bar = Encrypt_again(foo);
       return bar;
    }

    function Encrypt_again(str) {
       foo = str + 3 * 2;
       return foo;
    }

    var string = "abc";
    return Encrypt(string);
    


Important is, that I have multiple predefined functions with a small code, which are not accessible on the server.
Inside the Encrypt function another function is called.

Thx for your help.
2 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Iframe Cross-Domain Tracking in Google Tag Manager

Here's an article I wrote about tracking iframes cross-domain with Google Tag Manager. It's not the simplest thing to do, as you have to reload the iframe with the decorated src. Nevertheless, this gets the job done nicely, though you can always improve the solution. I've linked to some good guides in the article as well (mainly by +LunaMetrics and +Knewledge) which you might want to check out.

If you can't be bothered to read the article itself, at least read the Summary chapter. Writing it was pure, unadulterated catharsis for me.

#gde   #googletagmanager   #blogpost  
View original post
1
Add a comment...
Andy's Collections
Work
Occupation
Digital Analytics
Skills
nunchuku skills, bow hunting skills, computer hacking skills
Employment
  • Perficient
    Senior Digital Analytics Consultant, 2011 - present
  • Llywelyn's Pub
    Food Runner, 2010 - present
  • Network Solutions
    Corporate SEO Developer, 2006 - 2011
Basic Information
Gender
Male
Looking for
Friends, Networking
Relationship
Married
Story
Tagline
Digital Analytics Guy
Introduction
I've made computer "things" my life ever since I was 13. I love technology and how it helps us in everything we do today.  I work for Perficient as a business consultant that specializes in Digital Analytics and I work nights and weekends at Llywelyn's Pub St. Charles.  

Self imposed title
: Professional Internet Sponge

Words of wisdom
"Be smart enough to surround yourself with smarter people."

"Never be the smartest person in the room"

"It never hurts to ask, unless of course you're asking for a beating..."

"If you know something I don't, congrats...you belong to a exclusive club that has 6.8 Billion members."

"Why reinvent the wheel when you can rip off the rocket?"

"I'm 25% funny and 85% bad at math"

"Even a stopped clock is right two times a day"

Circles I might fit in?
  • By day: SEO/OLM/Web Analytics
  • By night: Gamer, Tech Consumer, Electronic Music Lover
Bragging rights
Solved a Rubik's cube while driving in the rain one handed...wouldn't recommend it.
Education
  • Hard Knocks University
    Failing at everything, present
  • University of Missouri, Columbia
    Computer Science
  • St Charles County Community College
    Multi Media and Web Design
  • Elsberry High School
    1996 - 1999