<
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.
dom.change vss.search splittest.assigned recommendations.display recommendations.click digi.show digi.action interactionEvent overlay.show overlay.step overlay.dismiss overlay.action search.open search.closed search.performed search.quicklink.click search.term.click search.category.click search.brand.click search.product.click search.viewAll.click search.default search.promotion.show search.promotion.click
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:add reference here', (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.)