holidaycheck / react-google-tag-manager

This repository contains a react based implementation for Google's Tag Manager snippet.
MIT License
192 stars 31 forks source link

How is the `additionalEvents` property meant to be used? #49

Closed gf3 closed 8 years ago

gf3 commented 8 years ago

Are you able to provide a simple example of how one might use the additionalEvents property?

FQ400 commented 8 years ago

It should be an javascript object. See the test case.

I will update the test case with a real world example.

FQ400 commented 8 years ago

Here are the docs from GTM: https://developers.google.com/tag-manager/devguide#events

gf3 commented 8 years ago

are the events in additionalEvents meant to be pushed on componentDidMount?

FQ400 commented 8 years ago

Yes.