Skip to content

Commit 64cc45e

Browse files
committed
update readme with instructions for google tag manager
1 parent e37513a commit 64cc45e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,13 @@ You can also define the path in your RequireJS configuration like so:
391391
});
392392
</script>
393393
```
394+
395+
### Integrating with Google Tag Manager ###
396+
**Note: we do not officially support Google Tag Manager, but these instructions have been reported to work for people. Proceed at your own risk**
397+
398+
1. Follow the Javascript SDK [Setup Instructions](https://github.com/amplitude/Amplitude-Javascript#setup), steps 1-3.
399+
2. Call SDK functions in Google Tag Manager using [Custom HTML tags](https://support.google.com/tagmanager/answer/6107167?hl=en) and adding Javascript in this form as the custom tag:
400+
401+
```html
402+
<script>amplitude.logEvent('TAG');</script>
403+
```

0 commit comments

Comments
 (0)