Commanders Act X
Platform XDocumentationWelcome to Success
  • Welcome !
  • Platform updates
    • Announcements
    • Documentation updates
    • Release notes
  • Getting started
    • How the platform works
      • Glossary
        • Condensed platform concepts
    • Platform interface
      • Prod and Testing environments
      • Productivity tools
        • Commander's AI
    • Integrating your data
      • GTM Tutorial
      • OneTag Tutorial
      • Migration guides to the Platform X
        • Migrate from SSv1 to SSv2
          • Send data to serverside v2
            • Purchase event example (ssv1 to ssv2)
        • Migrate from old mobile sdk
  • Features
    • Sources
      • Sources Overview
      • Sources Catalog
        • Web
          • Web container
            • User guides for browser-side platform
              • Container
                • Hosting
                • Creation and modification
                • Generation
                • Testing
                • Deployment and roll back
                • Deletion
                • Statistics
                • Modification history
                • Javascript block
                • Branches
                • Plugin Commanders Act Assistant
              • Tags
                • Add tags
                • Configure tags
                • Rules
                  • Basic actions
                  • Triggers
                  • Perimeters & constraints
              • Data layer and data types
                • External variables
                • Internal variables
                • Event variables
                • Data storage
              • Deduplication
                • Setup guide
                • Setup example
                • Deduplication reports
              • TagPerformance
                • Setup guide
                • Report analysis
                • Troubleshooting
            • Setup guides for developers
              • Web container setup
              • Datalayer setup
              • Browser-side events setup
              • AMP
              • Angular
              • AngularJS
              • React
              • SPA implementation guide
              • VueJS
              • IOT & TV Apps
            • Best Practices
              • FAQ
              • Common Container Strategies
              • Common Trigger Strategies
              • Performance Optimization
              • tC.* attributes and methods
              • APIs
                • Onsite API
              • TMS & Consent banners IDs
          • Javascript SDK
            • Next.js serverside rendering
          • Pixel Tracking API
          • Google Tag Manager (GTM)
          • Shopify
        • Mobile APP
          • Android
          • iOS
          • Flutter
          • React native
        • Advertising
          • Bing Ads (cost import)
          • Facebook Ads (cost import)
          • Criteo (cost import)
          • Realytics
        • Import CRM users
          • API users
          • Users file importer
        • Import conversions
          • API Conversions and Product catalog
          • Conversions files importer
        • Product catalog
          • Product catalog files importer (FTP)
        • Server
          • HTTP tracking API source
            • (deprecated) HTTP tracking API source 1.0
          • Node.JS
          • Python
          • PHP
      • Source Live Event Inspector
      • Source data quality
    • Destinations
      • Destinations overview
        • Automatic Audience replay
      • Destinations catalog
        • AbTasty
        • Actito
        • Adform
        • Adobe
          • Adobe Analytics
          • Adobe Campaign
        • AdRoll
        • Adition
        • Adventori
        • Affilae
        • Alphalyr Marketing Studio
        • Amazon
          • Amazon Ads Conversions API
          • Amazon S3
        • Attraqt
        • Awin
        • Batch Audience
        • Branch Events
        • Button
        • Campaign Analysis Legacy
        • Commission Junction
        • Criteo
          • Criteo - Events
          • Criteo (audiences)
          • Criteo (offline conversions)
        • Data Activation Legacy
        • Dataventure
        • Destination Logs Exporter (closed beta)
        • Dialog-Mail
        • Dynamic Yield
        • Easyence
        • Effinity
        • Eloqua
        • Emarsys
        • Email export
        • Equativ Audience
        • Experian
        • Facebook
          • Facebook Conversions API
            • Facebook CAPI through GTM
            • Performance tab (Event Match Quality)
          • Facebook Custom Audiences
          • Facebook Lead Ads
        • FTP
        • Gamned
        • Google
          • Google Analytics 4
            • Google Analytics 4 - Proxy Mode
          • Google BigQuery
          • Google Conversion Adjustments
          • Google Customer Match
          • Google Display & Video 360
          • Google Enhanced Conversions
          • Google Enhanced Conversions for Leads
          • Google Floodlight Mobile App Conversion
          • Google Search Ads 360 Enhanced Conversions
          • Google Store Sales Direct
        • IBM
        • Inxmail
        • IntelliAd
        • Jellyfish
        • Kameleoon
          • Kameleoon Audience
          • Kameleoon Events
        • Kelkoo
        • Kwanko
        • LinkedIn Conversions API
        • Liveramp
        • Magento
        • Marin Software
        • Mapp
        • Matomo
        • MediaMath
        • Microsoft Advertising Universal Event Tracking
        • Mindlytix
        • Moebel
        • Nextdoor Conversion API
        • OXID
        • Optimizely
        • Outbrain
        • Partnerize
        • Piano Analytics
          • Piano Analytics Collection API
          • Piano Analytics Enrichment API
        • Pinterest
        • Piwik PRO
        • Prediggo
        • Qlik
        • Quantcast
        • Quora Ads Conversion API
        • Rakuten
          • Rakuten Audience
          • Rakuten Events
        • Realytics
        • Reddit Conversions API
        • Responsys
        • RhythmOne
        • Rich Relevance
        • RTB House Audience
        • Salesforce
          • Salesforce Audience Studio
          • Salesforce Marketing Cloud
          • Salesforce Commerce Cloud
        • SAP Commerce Cloud
        • Selligent
        • Skai
        • Smart Adserver
        • SmartFocus
        • Snapchat Conversions API
        • Splio
        • Syte
        • Tableau Online
        • Taboola
          • Taboola Audience
          • Taboola Events
        • Target2sell
        • Temelio
        • Teradata
        • The Trade Desk
          • The Trade Desk Conversions API
          • The Trade Desk Audience
        • TikTok
          • TikTok Events API
          • TikTok Offline Events
        • TimeOne
        • Tradedoubler
        • TradeTracker
        • X (Twitter) Conversion API
        • Xandr
        • Webhook
        • Webtrends
        • ZBO Media
        • Zeta
      • Destination builder
        • Javascript destination builder
          • Tutorial - How to build a server destination with the JS sandbox
          • Serverside javascript helpers
      • Destination filters
      • Mapping and Properties transformation
      • Event delivery
      • Destination event inspector
      • Dry mode (lab)
    • Enrichments
      • Augmented User Attributes
        • Business case
      • Events enrichment
      • Storage Settings
    • Data Quality
      • Event Specification
      • Sources data quality
      • Data cleansing
        • Supported transformation functions - Data cleansing
          • Format a date
    • Identity resolution
      • Migrate from Fuse v1 to Fuse v2
    • Customers
      • Segment
        • Segment overlap
        • Segment stats
    • Explore
      • Campaign analysis
        • Attribution
        • Control Group (Closed Beta )
      • User analysis
        • Dashboards
      • Consent Analysis
    • Consent management
      • Responsability of actors
      • Setup Guides
        • Tag Manager
          • Commanders Act TMS
          • Google Tag Manager (GTM)
          • Google Tag Manager (GTM) - Consent Mode
          • Google Consent Mode in Commanders Act CMP
          • Adobe Launch
        • Websites (Hardcoded)
        • FR : Suppression des cookies lors du retrait du consentement
        • Mobile apps
          • iOS
            • ATT - App Tracking Transparency (iOS 14.5+)
          • Android
      • User Guides
        • Categories & Tags
          • Manage Categories
          • Manage Vendors
          • Assign Categories
        • Privacy Banners
          • Banner Templates
            • Accessibility Template
          • Manage Banner
          • Deploy Banner
          • Copy Banner
        • Consent Analysis
        • Exports
        • Settings
      • Extensions
        • Cookie Scanner
        • Piggybacking
        • Tag Firewall
      • Marketing Preferences Center (additional module)
      • Knowledge Base
        • Consent Object
        • Consent cookies exemption
          • Implementation guide for exempted consent statistics FR market
        • Consent Cookie
        • IAB TCF V2.2 Release details
          • IAB TCF v2.2 CMP requirements
          • IAB TCF v2.2 Migration guide Web
          • IAB TCF v2.2 Migration guide App
        • IAB TCF V2.2 Consent
        • IAB TCF V2.2 and Google FAQ
        • Google ACM requires IAB TCF
        • CCPA & Global Privacy control
      • Rest Data API
        • GET/PUT Consents / preferences
      • OnSite API
        • Getting Started
        • consent.get
        • consent.update
        • consent.revoke
        • consent.onUpdate
        • consent.onReady
        • consentBanner.show
        • consentBanner.hide
        • consentCenter.show
        • consentCenter.hide
      • Platform API
        • Get statistics
  • Use cases
    • Data activation
      • Engage new customers
        • Welcome banner for new customers
        • Real-time promotion for hesitant customers
        • Discount banner for installing the application
        • Personalized ads
        • Engage similar audience (lookalike)
      • Increase loyalty
        • Drive to favourite store
        • Increase Customer Lifetime Value with a loyalty program
        • Notification about order delay
      • Increase revenue
        • Abandoned cart
        • Products recommendations
        • Complementary product offer
      • Retain customers
        • Identify a churn risk with RFM segmentation
        • Identify customers’ preferred channel
        • Contact with the customer support
      • Advocacy
        • Incentive to share customers' experience and rating
        • Sponsorship Program
        • Social Media Hashtag
    • Website performance
    • Consent banners A/B testing
    • Customer analysis
    • Campaigns performance analysis
  • Developers
    • Tracking & Integrations
      • Tracking
        • About events
          • E-commerce/retail events
          • Web event specificity
          • Mobile App event specificity
        • Events reference
          • Common events
          • E-commerce events
          • Video events
          • Campaign Tracking events
        • Properties reference
          • Global properties
          • Video properties
          • Permanent properties
        • Data API
          • HTTP API
          • Segment API
          • User API
          • Product catalog and conversion API
      • Server IP Whitelisting
    • Config API
    • Changelogs
      • Measure.js changelog
      • Web container generator
    • Content Security Policy
  • CONFIGURE
    • Data Management
      • Events collection
      • Data retention duration
      • Data Governance
    • Administration
      • User management
      • Domain Management
        • WAF Proxy (CloudFlare,...)
        • A record
        • CNAME record
        • On-Premise Proxy
        • Cookie CAID
        • First party hosting
      • Single Sign-On
      • Two-factor authentication (2FA)
      • Copy Management
    • Cookies
      • Cookie 1st
      • Cookie sync partners
      • First domain tracking (Phoenix)
    • Disclaimer
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Features
  2. Sources
  3. Sources Catalog
  4. Web
  5. Web container
  6. Best Practices

tC.* attributes and methods

“tC.” methods are namespaced* . They come in handy when needing to perform technically advanced actions such as printing the array of launched tags within a container into the browser’s console. Please note that these functions’ availability and behavior depend on several elements like your container configuration, among others. Simply type “tC.” into your browser’s console and the list of available functions on a given site and for a given container will appear.

* “namespacing is a technique employed to avoid collisions with other objects or variables in the global namespace. They’re also extremely useful for helping organize blocks of functionality in your application into easily manageable groups that can be uniquely identified.”

tC._R

Internal object used for statistics

tC.ams

Internal object used for the Measure product

tC.array_launched_tags

Displays a list of tags within the container version that is published. If you use one of our testing tools (Bookmarklet or TagAssistant Chrome extension) and simulate the presence of a different container version, the function will display the tags within the container version that is being tested

tC.array_launched_tags_keys

Displays a list of tag identifiers corresponding to the tags within the container version that is published or being tested

tC.call

Internal function used for callbacks

tC.containerVersion

Displays the version number of the container that is published or being tested

tC.containersLaunched

Displays a JavaScript object containing other objects. The latter correspond to the containers launched on a given page and provide information about them and the tags within (id, name)

tC.dedup

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays a JavaScript object containing all defined channels and sources and showing whether they are active or not

tC.dedup_done

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays whether the deduplication module is on or off on a given site

tC.dedup.cj

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the last 10 touchpoints in a user’s customer journey. They are collected with customer journey (CJ) cookies. You can adjust the number of touchpoints in the interface. To do so, please go to the Options > Channel and sources definition tab

tC.dedup.LeA

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the last recognized channel in the customer journey

tC.dedup.LeAD

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the source associated to the last recognized channel in the customer journey cookie

tC.dedup.LeC

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the last recognized channel – related to clicks – in the customer journey cookie

tC.dedup.LeCD

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the source associated to the last recognized channel – associated to clicks – in the customer journey cookie

tC.dedup.LeV

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the last recognized channel – related to views – in the customer journey cookie

tC.dedup.LeVD

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the source associated to the last recognized channel – related to views – in the customer journey cookie

tC.dedup.FeC

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the first recognized channel – related to clicks – in the customer journey

tC.dedup.FeCD

DEDUPLICATION HAS TO BE ACTIVE FOR THIS FUNCTION TO WORK

Displays the source associated to the first recognized channel – related to clicks – in the customer journey cookie

tC.dedup.FeV

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the source associated to the first recognized channel – related to views – in the customer journey cookie

tC.dedup.FeVD

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays the source associated to the first recognized channel –related to views – in the customer journey cookie

tC.dedup.AeA

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays channels recognized halfway through the customer journey

tC.dedup.AeC

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays channels recognized halfway through the customer journey (for clicks)

tC.dedup.AeV

DEDUPLICATION HAS TO BE ENABLED FOR THIS FUNCTION TO WORK

Displays channels recognized halfway through the customer journey (for views)

tC.domReady

Displays whether all the content from the Document Object Model (DOM) has finished loading or not (i.e. the containers)

tC.domain

Returns the page’s domain (.tagcommander.com for instance)

tC.each

Internal iterator

tC.generatorVersion

Displays the container generation engine’s version

tC.getCookie

Displays the value of a given cookie. You need to write the function and the cookie’s name next to it between parentheses and quotes: tC.getCookie(“cookie’s name”).

tC.getParamURL

Displays a given parameter from the page’s URL

tC.hitCounter

Internal function used to obtain statistics related to invoicing hits

tC.id_container

Displays the container ID

tC.id_site

Displays the TagCommander site ID

tC.inArray

Internal function to check if an element is placed inside an array

tC.inclusion_oct_1

Specific to each container (JS inclusion)

tC.internalFunctions

Namespace for TagCommander’s internal functions

tC.internalvars

Namespace for TagCommander’s internal variables

tC.isArray

Method to verify whether a variable is placed inside an array

tC.isCurrentVersion

Confirms whether the currently deployed version in the interface is the current version on the site

tC.isDOMReady

Confirms if the Document Object Model (DOM) is ready

tC.isFunction

Method to verify whether the type of a variable is a function

tC.isNumeric

Method to verify whether a variable’s value is a number

tC.isPrototypeOf

Method to verify whether a variable is prototype

tC.isWindow

Method to verify whether a variable is window

tC.launchTag

Internal method used for TagCommander’s Google Chrome extension

tC.length

Internal variable

tC.log

Method replacing the console.log() command

tC.maindomain

Displays the main domain containers are deployed on

tC.name

Displays a “c” for container

tC.nodeNames

Displays the list of the Document Object Model’s (DOM) elements

tC.onDomReady

Method to execute code on the Dom Ready event

tC.pixelTrack

Internal Method injecting pixels

tC.privacy

Namespace for variables related to the Privacy module

tC.privacyVersion

Displays the version number of the Privacy banner and settings that are published

tC.rchecked

Internal Variable storing a regexp

tC.removeCookie

This function lets you remove a cookie. You need to write the function and the cookie’s name next to it between parentheses and quotes: tC.removeCookie(“cookie’s name”)

tC.script

Returns a JavaScript object that you can “unfold” to find the location of the container (link to the script)

tC.setCookie

This function lets you create a cookie. Here is the function interface:  tC.setCookie(name, value, lifetime, path, domain, secure, sameSite). Ex: tC.setCookie(“My_cookie”, “1”, 365,”/”,”.mysite.com”, true, "Lax")

tC.ssl

Displays the SSL certificate: indicates whether the page’s protocol is https or http

tC.tagPatterns

Internal variable containing the regex (patterns) to detect tags’ hits for the TagPerformance module

tC.tagPerf

Internal variable for the TagPerformance module

tC.tagPerfAnalyzer

Internal function that analyzes a page to calculate tags’ response time (for the TagPerformance module)

tC.tagPerfE

Yet unused variable that controls sampling rates of TagPerformance’s calls

tC.script.add(location.protocol + “//manager.tagcommander.com/utils/IP/”);

This function allows you to recover the IP address

PreviousPerformance OptimizationNextAPIs

Last updated 2 years ago

Was this helpful?