Commit 00a0fdb0 authored by Shane Rice's avatar Shane Rice

pushing changes to dataLayer for Jarek

parent 65ba1b91
Pipeline #45821255 failed with stages
in 11 minutes and 38 seconds
......@@ -2,11 +2,6 @@
// Creates a dataLayer above GTM tag
%script{ type: "text/javascript"}
window.dataLayer = window.dataLayer || [];
\ dataLayer = [{
\ 'campaign': '#{current_article.data.campaign}',
\ 'postType': '#{current_article.data.postType}',
\ 'tags': #{current_article.data.tags.split(", ")}
\ }];
%meta{name: "viewport", content: "width=device-width, initial-scale=1.0"}
%script document.documentElement.className = 'html--js'
......
......@@ -3,7 +3,7 @@
%head
= partial "includes/layout/head"
dataLayer = [{
\ "postType": "#{current_article.data.postType}"
\ 'postType': '#{current_article.data.postType}',
\ 'campaign': '#{current_article.data.campaign}',
\ 'tags': #{current_article.data.tags.split(", ")}
}];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment