This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>{{ article.title }} | {{site.name}}</title> | |
<meta name="description" content="{{ article.description }}"> | |
</head> | |
<body> | |
<h1>{{ article.title }}</h1> | |
<div class="byline">by TrevorFox </div> | |
<div class="content">{{ article.content }}</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read more on the blog posts: https://trevorfox.com/2019/01/drift-event-tracking-google-tag-manager/ | |
// Data Layer event values to be pushed according to their driftEventName | |
var driftEvents = [ | |
{driftEventType: 'sidebar', driftEventName: 'sidebarOpen', driftEventDescription: 'sidebar opened'}, | |
{driftEventType: 'sidebar', driftEventName: 'sidebarClose', driftEventDescription: 'sidebar closed'}, | |
{driftEventType: 'welcome message', driftEventName: 'welcomeMessage:open', driftEventDescription: 'welcome message opened'}, | |
{driftEventType: 'welcome message', driftEventName: 'welcomeMessage:close', driftEventDescription: 'welcome message closed'}, | |
{driftEventType: 'away message', driftEventName: 'awayMessage:open', driftEventDescription: 'away message opened'}, | |
{driftEventType: 'away message', driftEventName: 'awayMessage:close', driftEventDescription: 'away message closed'}, |