Google Analytics / GTM events
How event tracking works on your flipbook when you add Google Analytics or Google Tag Manager integration.
Google Analytics
We track Pageviews (both initial load and if end user pages the flipbook) in Google Analytics. On top of that, we also track various Events across our flipbooks. Take a look at the list below for a full list of events.
Events
All events are tracked to the iPaper events category in the following formats:
Universal Analytics (UA):
Google Analytics 4 (GA4):
Note:
Google Analytics 4 (GA4) does not by default collect event categories, so event names in GA4 have ‘ipf_’ prepended for iPaper Flipbook events
Note:
When using Google Analytics 4 (GA4), the contents of event_label are also sent as individual event parameters prepended with ‘ip_’
Overview
Note:
Dependent on whether you are using Universal Analytics (UA) or Google Analytics 4 (GA4) the event names will be slightly different
Event name | Data | Comment |
---|---|---|
ipaperEvent_externalLinkClick | n.a. | |
ipaperEvent_openDisplay | n.a. | |
ipaperEvent_load | Flipbook URL is simply read from | |
ipaperEvent_PDFDownload | n.a. | n.a. |
ipaperEvent_leadgenPopupOpen | n.a. | |
ipaperEvent_leadgenPopupConversion | n.a. | |
ipaperEvent_leadgenPopupConversionByUrlClick | n.a. | |
ipaperEvent_popupImageClick | n.a. | |
ipaperEvent_popupGalleryImageClick | n.a. | |
ipaperEvent_popupMediaGalleryClick | n.a. | |
ipaperEvent_popupContentClick | n.a. | |
ipaperEvent_popupFrameClick | n.a. | |
ipaperEvent_productAddedToCart | n.a. | |
ipaperEvent_newsTickerExternalLinkClick | n.a. | |
ipaperEvent_search | n.a. | |
ipaperEvent_shopCheckout | Possible | |
ipaperEvent_videoPlay | Only the first play is registered. Possible | |
ipaperEvent_amountSelectorModalOpen | n.a. | |
ipaperEvent_productsOnPageModalOpen | n.a. | |
ipaperEvent_shopDetailItemModalOpen | n.a. | |
ipaperEvent_shopMultivariantModalOpen | n.a. |
Note:
The values in []
will be replaced with context specific value before sending the event.
Example
For example, when somebody searches for “Cute puppies” in your flipbook, we will track it as such via the “Search” event:
Universal Analytics (UA):
Google Analytics 4 (GA4):
If you need help setting up Google Analytics on your iPaper account, have a look at our Integrate Google Analytics With iPaper Google Analytics Tracking guide.
Google Tag Manager
Similar to Google Analytics, we track Pageviews (both initial load and if end user pages the flipbook) in Google Tag Manager. Pageviews on GTM are tracked as such:
On top of that, we also track various Events across our flipbooks.
Note:
When using Google Tag Manager to track to Google Analytics, it’s important that you haven’t also defined an Analytics Tracking ID, since this will result in pageviews and events getting tracking twice or more. If Google Tag Manager is not used to track to Google Analytics, it’s okay to include both tags, but it’s adviced to stick with one or the other to keep your tracking as simple as possible.
Events
For all events we support, we’ll push the raw event data and the Category, Action and Label that we’d push to Google Analytics for the similar event.
For the events below we will push to the data layer in the following format
Overview
Event name | Data | Comment |
---|---|---|
ipaperEvent_externalLinkClick | n.a. | |
ipaperEvent_openDisplay | n.a. | |
ipaperEvent_load | Flipbook URL is simply read from | |
ipaperEvent_PDFDownload | n.a. | n.a. |
ipaperEvent_leadgenPopupOpen | n.a. | |
ipaperEvent_leadgenPopupConversion | n.a. | |
ipaperEvent_leadgenPopupConversionByUrlClick | n.a. | |
ipaperEvent_popupImageClick | n.a. | |
ipaperEvent_popupGalleryImageClick | n.a. | |
ipaperEvent_popupMediaGalleryClick | n.a. | |
ipaperEvent_popupContentClick | n.a. | |
ipaperEvent_popupFrameClick | n.a. | |
ipaperEvent_productAddedToCart | n.a. | |
ipaperEvent_newsTickerExternalLinkClick | n.a. | |
ipaperEvent_search | n.a. | |
ipaperEvent_shopCheckout | Possible | |
ipaperEvent_videoPlay | Only the first play is registered. Possible | |
ipaperEvent_amountSelectorModalOpen | n.a. | |
ipaperEvent_productsOnPageModalOpen | n.a. | |
ipaperEvent_shopDetailItemModalOpen | n.a. | |
ipaperEvent_shopMultivariantModalOpen | n.a. |
Example
An example of a DataLayer push for the event ipaperEvent_externalLinkClick
could look like this:
Page element click tracking on GTM
Aside from the events listed above, we also track the PageElementClicked
event, but it’s only triggered for the internal & external linktype.
Event name | Data | Comment |
---|---|---|
PageElementClicked | Triggered on internal and external linktypes only |
Event labels in GA and GTM
The data format below is represented in JSON. It is converted to a string for the eventLabel
object using the following convention:
Key names are PascalCased
Key-value pairs are separated by the pipe character
|
Example:
…is converted into:
HoverText: [LINK_HOVER_TEXT] | Url: [EXTERNAL_URL] | Page: [PAGE_NUMBER]
Last updated