Home » World » Why are mentally ill soldiers being drafted in Ukraine?

Why are mentally ill soldiers being drafted in Ukraine?

TimesApps Integrates Enhanced Campaign Tracking and User Engagement Tools

TimesApps has implemented a new system designed to provide more granular tracking of marketing campaigns and improve user interaction. This update focuses on integrating Google Ads (gtag.js) and Facebook Pixel (fbevents.js) for campaign performance monitoring, alongside the Survicate platform for user feedback and engagement.

The new functionality is contingent on specific site settings and campaign activation. If the `toiplus_site_settings` object is available and contains `isFBCampaignActive` and `isGoogleCampaignActive` flags, the respective tracking scripts will be loaded.This initial setup is bypassed for users identified as prime subscribers or those on a prime user layout.

For users who are not prime subscribers, the system first checks for predefined site settings. If these settings are not immediately available, it fetches them from a designated API endpoint at `https://jarvis.indiatimes.com/v1/feeds/toi_plus/site_settings/643526e21443833f0c454615?db_env=published`. Upon accomplished retrieval of these settings, the Google and Facebook tracking scripts are loaded based on the `isGoogleCampaignActive` and `isFBCampaignActive` parameters, respectively.

The Survicate JavaScript,sourced from `https://survey.survicate.com/workspaces/0be6ae9845d14a7c8ff08a7a00bd9b21/web_surveys.js`, is also integrated. This script is loaded conditionally based on the `allowedSurvicateSections` parameter, which is determined by the user’s subscription status and layout. The Survicate integration includes a mechanism to set visitor traits, such as user subscription status and geolocation, ensuring personalized feedback collection.

The `setAttributes` function, responsible for configuring Survicate, is executed either directly if the Survicate API is ready or via an event listener for the `SurvicateReady` event. This ensures that Survicate is properly initialized with user-specific data.

The `TimesApps.toiPlusEvents` function serves as the primary entry point for this new system, managing the conditional loading of these tracking and engagement tools based on user status and available configuration data.

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.