Skip to content

Commit

Permalink
Update gtm.js (#20807)
Browse files Browse the repository at this point in the history
  • Loading branch information
bar7b authored Jan 6, 2021
1 parent b580bea commit 54102b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-google-tag-manager/lib/gtm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const GTM_ID = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID

export const pageview = (url) => {
window.dataLayer({
window.dataLayer.push({
event: 'pageview',
page: url,
})
Expand Down

0 comments on commit 54102b0

Please sign in to comment.