Skip to content

Commit 06e78a9

Browse files
gtfrdeswa
1 parent 44e129b commit 06e78a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amp/option6.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h4>Browser SDK with GTM wrapper & instance Name</h4>
9191
<p><a href="https://www.linkedin.com/in/anilopez/">Ani Lopez</a></p>
9292
</header>
9393
<main>
94-
<p>It is unlikely that you have a hard-coded <a href="https://amplitude.com">Amplitude</a> implementation in your websites alongside a second one done with Google Tag Manager and in need of a more advanced solution providing flexibility, scalability and control BUT if that's an scenario you are facing, here you have a way to solve it all in once. Check the code of this page to see it in action.</p>
94+
<p>It is unlikely that you have a hard-coded <a href="https://amplitude.com">Amplitude</a> implementation in your websites alongside a second one done with Google Tag Manager and in need of a more advanced solution providing flexibility, scalability and control BUT if that's an scenario you are facing, here you have a way to solve it all in once. Check the code of this page to see it in action. Feel free to copy and tweak as needed.</p>
9595
<ul>
9696
<li>Ensures the SDK is really initiated before anything else</li>
9797
<li>It uses an Instance Name the GTM analytics browser wrapper so you will see the use of <b>amplitudeGTM._iq[instanceName]</b> to isolate one implementation from the other and avoid polution</li>
@@ -102,7 +102,7 @@ <h4>Browser SDK with GTM wrapper & instance Name</h4>
102102
</ul>
103103
<p><a href="https://analytics-debugger.com/tools/analytics-debugger-extension/"><img alt="Analytics Debugger's Kamo in Toronto" src="/img/analytics-debugger-ducky.jpg" /></a></p>
104104
<p>The code, as indicated in the HTML comments, can be added into GTM HTML container with the trigger that works in your scenario and the GTM variables to replace the hard coded ones there.</p>
105-
<p>This is how the dataLayer push would look like.</p>
105+
<p>This is how the dataLayer push would look like:</p>
106106
<pre id="code">window.dataLayer.push({
107107
event: 'amplitudeSDK',
108108
amplitudeSKDstatus: 'initiated',

0 commit comments

Comments
 (0)