Skip to content

Commit ae41032

Browse files
Apply suggestions from code review
1 parent 858c19f commit ae41032

File tree

1 file changed

+1
-3
lines changed
  • src/connections/destinations/catalog/google-tag-manager

1 file changed

+1
-3
lines changed

src/connections/destinations/catalog/google-tag-manager/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,13 @@ If you have Google Ads enabled and see duplicate events in GTM, check to see if
8989

9090
Google recommends using [transactionIds](https://support.google.com/google-ads/answer/6386790){:target="_blank"} to prevent this duplication.
9191

92-
### Duplicate Events triggering GTM tags multiple times
9392

9493
In reviewing the "dataLayer" tab for each event in GTM, it was observed that the `eventModel` field, which is an internal Google field, is only present in events captured by the Google Ads SDK. To prevent GTM tags from firing multiple times due to duplicate events, you can create a GTM variable and use `eventModel` as a condition to filter events.
9594

9695
1. Create a [GTM variable](https://support.google.com/tagmanager/answer/7683056?hl=en){:target="_blank"} to capture the `eventModel` field when events hit the Google DataLayer
9796
2. Set the variable to add the value "GTM" to the `eventModel` field when the field is not present in the event dataLayer. The format value should be set to "Convert undefined to GTM"
98-
3. Add the newly created variable to your GTM trigger so that only events containing `eventModel = GTM will` trigger the tag.
97+
3. Add the newly created variable to your GTM trigger so that only events containing `eventModel = GTM` trigger the tag.
9998

100-
This solution has been shared by other customers. Please test it before implementing it with production data. If you have any questions regarding the GTM setup, consult the [GTM documentation](https://support.google.com/tagmanager/answer/6103657?hl=en){:target="_blank"}.
10199

102100

103101
## Appendices

0 commit comments

Comments
 (0)