New Delhi – In a move aimed at enhancing user engagement and data collection, TimesApps has implemented a complete strategy for its digital platforms, integrating advanced analytics and survey tools. This initiative focuses on tailoring user experiences based on subscription status and geographical location, while also activating targeted marketing campaigns.
The core of this strategy involves the dynamic loading of JavaScript for analytics and user feedback.Depending on the user’s subscription status, identified by a global `isPrime` variable, the system assigns a ‘paid’ or ‘free’ status. This status,along with the user’s country code (defaulting to ‘IN’ if not otherwise specified),is then recorded using the Survicate platform’s visitor traits. This ensures that user interactions and feedback are categorized accurately for future analysis and personalization.
The implementation of the Survicate JavaScript is managed through a conditional loading mechanism. If the Survicate object and its `setVisitorTraits` method are available, the attributes are set immediately. Or else, an event listener is attached to wait for the `SurvicateReady` event before proceeding. The Survicate script itself is dynamically created and inserted into the document’s head, ensuring it loads asynchronously.
Furthermore, the TimesApps.toiPlusEvents function orchestrates the activation of various campaign and analytics tools. It first checks for the availability of site settings, specifically `toiplus_site_settings`, and flags for active Google and Facebook campaigns.If these settings are present and the user is not a prime subscriber,it proceeds to load Google Tag Manager (gtag) events and Facebook Pixel events accordingly,along with Survicate JavaScript if permitted by the site settings.
In scenarios where the initial site settings are not available or the user is a prime subscriber, the system fetches updated site configurations from a remote Jarvis endpoint. This dynamic fetching allows for real-time adjustments to campaign and analytics configurations.The retrieved configuration then dictates whether Google and Facebook campaigns are activated and which sections of the website are eligible for Survicate surveys, with specific logic applied for prime user layouts.
This multi-faceted approach underscores a commitment to data-driven decision-making and personalized user journeys across TimesApps’ digital properties. By leveraging advanced analytics and feedback mechanisms,the company aims to optimize user engagement,understand subscriber behavior,and refine its digital marketing strategies.