Data layers 101

51
Data Layers 101 Jono Alderson Head of Insight @ Linkdex @jonoalderson

description

A whistle-stop tour through the concept of the data layer, why it’s not just techy-stuff, and some of the real-world applications and implications of adopting your own. …featuring such exciting topics as ‘Hands-on tips and tricks for Google Tag Manager’, ‘Reducing your dependency on frustrating development challenges when al you want to do is get a tag live’, and ‘Doing really clever stuff with variables, classifying user types, and scoring behaviours’.

Transcript of Data layers 101

Page 1: Data layers 101

Data Layers 101Jono Alderson

Head of Insight @ Linkdex

@jonoalderson

Page 2: Data layers 101
Page 3: Data layers 101

Not a new concept.

Page 4: Data layers 101

HUGE benefits...

Page 5: Data layers 101

But slow to take off

:(

Page 6: Data layers 101

Some History.

Page 7: Data layers 101

The Internet wasn’t designed for this.

Page 8: Data layers 101

Content, presentation and behaviour all muddled up.

Page 9: Data layers 101

The ideal...

Page 10: Data layers 101

HTML

CSSContent & Markup

Layout & presentation

Database + server-side

JavaScriptBehaviour

Logic & processing

Page 11: Data layers 101

The modern web

Page 12: Data layers 101
Page 13: Data layers 101

HTML

CSS

Database + server-side

JavaScript

Page 14: Data layers 101
Page 15: Data layers 101

HTML

CSS

Database + server-side

jQuery

Better, but still a mess.

Page 16: Data layers 101

And so...

Page 17: Data layers 101

“Can we add this conversion script to all

form ‘thank you’ pages?”

Page 18: Data layers 101
Page 19: Data layers 101
Page 20: Data layers 101

How do we get better at this?

Page 21: Data layers 101

Let’s get organised.

Page 22: Data layers 101

Container Tags

Great! …until you want to do something new.

Page 23: Data layers 101

Same principles apply with other solutions

Page 24: Data layers 101

Hook, trigger and manipulate page elements.

Page 25: Data layers 101

“Trigger a CTA if this is the first page the user has seen”

But what about...

Page 26: Data layers 101

“Don’t trigger our retargeting code if the product has a high returns rate”

or...

Page 27: Data layers 101

DOM hooks only get you so far.

Page 28: Data layers 101

Introducing the Data Layer......Making it really freakin’ easy to manage

and turbo-charge your tagging* since 2012

*and other cool stuff

Page 29: Data layers 101

HTML

CSS

Database + server-side

JavaScript / jQuery

Data

Page 30: Data layers 101

Data

Page 31: Data layers 101

It’s just a big array.

Page 32: Data layers 101

dataLayer : {“number of tacos” : 12345“colour” : “red”“foods” : {

“meat” : “bacon” “veg” : “carrot” “starter” : “soup” “courses” : 3

}}

Page 33: Data layers 101

pageInfo: {url: "http://www.example.com/category/article-name/"author: "John Smith"

}

Pages written by a specific author

Page 34: Data layers 101

category:{ primaryCategory: "Cameras", subCategory1: "Nikon", pageType: "ProductDetail"

}

Products in a specific category

Specific page templates

Page 35: Data layers 101

attributes:{ seasonal: "Christmas" priority: "high"returnFreq: "low"

} Attributes which aren’t necessarily available from/on the page

Page 36: Data layers 101

userInfo:{ pagesViews: 6 lastPage: "http://www.example.com/page/"loggedIn: "false"persona: “bargain hunter”qualityScore: 2gender: "female"

}

Server-side stuff which you can expose and use easily

Just imagine...

Page 37: Data layers 101

(An aside)Enable Google Analytics demographic data NOW.

Page 38: Data layers 101

transactionInfo:{ "bookingDate" : "26/05/2014", "departureDate" : "12/07/2014", "bookingValue" : 155.45, "productSkus": [ "100002", "100003", "100004" ]

}

Get that in your analytics

Page 39: Data layers 101

Chuck some API calls in there, too (don’t forget to cache)

Page 40: Data layers 101

Getting stuff out

Google Tag Manager, javascript, ajax

Page 41: Data layers 101

“But we can already do all of this kind of stuff…”

Page 42: Data layers 101

...but it’s sure as hell not flexible.

and it doesn’t anticipate unknowns

Page 43: Data layers 101

Next steps...

Page 44: Data layers 101

Now bring it to life.Add things after page load

Clicks, mouseovers, dwell times, behaviours, triggers

Page 45: Data layers 101

Anticipate what you needUpdate as you go

Page 46: Data layers 101

This sounds like more work...

Page 47: Data layers 101

Standardisation

Page 48: Data layers 101

E.g.,Generify the concept of ‘submitted’

Brief on scenario not specifics

Page 49: Data layers 101

Want to get really clever?

Server-side / ajax data layers

Keep sensitive data secret!

Page 50: Data layers 101

SummaryCare for your data, and it’ll change your world

Page 51: Data layers 101

Thanks!