Skip to content

Commit

Permalink
Merge pull request #1078 from uktrade/feature/add-no-js-tracking
Browse files Browse the repository at this point in the history
add tag manager tracking for no javascript page views
  • Loading branch information
feedmypixel authored Dec 13, 2017
2 parents bd9dc81 + 1fe99d3 commit 4e36565
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/templates/_includes/google-tag-manager-no-script.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% if GOOGLE_TAG_MANAGER_KEY %}
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id={{ GOOGLE_TAG_MANAGER_KEY }}" height="0" width="0" style="display:none;visibility:hidden"></iframe>
<iframe src="https://www.googletagmanager.com/ns.html?id={{ GOOGLE_TAG_MANAGER_KEY }}&no_javascript=true"
height="0" width="0"
style="display: none; visibility: hidden;"
></iframe>
</noscript>
{% endif %}

0 comments on commit 4e36565

Please sign in to comment.