Skip to content

Commit

Permalink
remove nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Jaffee committed Nov 10, 2023
1 parent 2124dd9 commit b9ee23f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/EventPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ export interface EventPayload {
* Either a Coordinates object with both latitude and longitude or a string
* with the country of the visitor for the event, as a ISO 3166-1 alpha-2 country code. */
location?: Coordinates | string;
/* Deduplication ID for the event.
Events from the same app for the same business with the same nonce will get de-duplicated. */
nonce?: string;
/** The URL of the page where the event occurred */
pageUrl?: string;
/** The URL of the page which the visitor came from prior to the event. */
Expand Down
36 changes: 36 additions & 0 deletions test-gtm/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!doctype html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-5XJN5FXJ');
</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Analytics Test</title>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-5XJN5FXJ"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
<h1>Analytics Test</h1>
<button type="button">Test</button>
</body>
</html>

0 comments on commit b9ee23f

Please sign in to comment.