<
HomeSalesfire uses its own analytics service to track revenue clicks and conversions, if you wish to track the Salesfire products through Google Analytics accurately, you may add event listeners to Google Analytics to track Salesfire Overlays, Search, Visually Similar Search, Email and Recommendations.
Setting up events in Google Analytics
NB - The Overlays are sandboxed within an iframe so do not have access to the parent window GTM object.
We do however expose an event listener so you can hook into events for when an overlay is opened, clicked, etc.
This will need to be implemented on the site itself.
You can bind event listeners using __sf.on and __sf.off.
Current events we currently support:
page_view
order
overlay_impression
overlay_click
email_impression
email_click
email_sent
recommendation_impression
recommendation_click
search_impression
search_click
image_search_impression
image_search_click
digi_impression
digi_click
campaign_test
merge
merge_to
NB - search.category and search.brand may no longer be used since we made UI updates but they remain for legacy reasons.
Example:
__sf.on('overlay.show:vs', (trigger, campaign) => {
// Do something
});
(Please note that __sf won't be present until our code has loaded in so you may need to poll for a bit first.)