TimesApps Integrates Enhanced Campaign Tracking and user Engagement Tools
TimesApps has rolled out a new integration designed to bolster campaign tracking and user engagement across its digital platforms. The update introduces functionalities for Google Ads (gtag.js) and Facebook Ads (fbevents.js) event tracking, alongside the implementation of Survicate, a customer feedback and survey tool.
The new system allows for dynamic loading of these tracking scripts based on site configurations and user status.Specifically,the `TimesApps.toiPlusEvents` function orchestrates the loading of these tools. It first checks for the availability of `toiplus_site_settings` in the global `f` object, which should contain flags for `isFBCampaignActive` and `isGoogleCampaignActive`.
If these settings are present and the user is not identified as a prime subscriber, the Google and Facebook tracking scripts are loaded directly. Concurrently, the Survicate JavaScript is loaded, contingent on the `allowedSurvicateSections` configuration. This ensures that Survicate surveys are only presented in designated areas of the website.
In scenarios where the initial site settings are not available or the user is a prime subscriber, TimesApps utilizes a fallback mechanism. It fetches site settings from a specified Jarvis API endpoint. This dynamic fetching allows for real-time adjustments to campaign tracking and survey deployment based on the latest configurations, including specific settings for prime user layouts.
The Survicate integration is further refined with a visitor trait setting.This allows for the capture of user subscription status (`toi_user_subscription_status`) and geolocation (`toi_user_geolocation`). These traits are set either directly if the Survicate library is ready or via a `SurvicateReady` event listener, ensuring data is captured accurately regardless of the script’s loading order.
This extensive update aims to provide TimesApps with deeper insights into campaign performance and user behavior, facilitating more targeted and effective user engagement strategies.