Web container
Community home
  • User manual
    • Getting Started
    • Data layer and data types
      • External variables
      • Internal variables
      • Event variables
      • Data storage
    • Container elements
      • Container
      • Tags
      • Events
      • Rules
        • Basic actions
        • Triggers
        • Perimeters & constraints
      • Advanced
    • Deduplication
      • Setup guide
      • Setup example
      • Deduplication reports
    • TagPerformance
      • Setup guide
      • Report analysis
      • Troubleshooting
    • Phoenix
    • APIs
    • Setup Guides
      • AMP
      • Android
      • Angular
      • AngularJS
      • Consent Management
      • IOT & TV Apps
      • iOS
      • React Native
      • React
      • Serverside
      • SPA implementation guide
      • VueJS
      • Websites
  • Tips & tricks
    • Best Practices
      • FAQ
      • Common Container Strategies
      • Common Data Layer Properties
      • Common Trigger Strategies
      • Performance Optimization
      • tC.* attributes and methods
    • Widgets and extensions
      • Bookmarklet
      • Elements duplication
      • Chrome extension
      • Connected users visualization
Powered by GitBook
On this page
  1. User manual
  2. TagPerformance

Troubleshooting

PreviousReport analysisNextPhoenix

Last updated 2 years ago

If you notice that a tag is slowing down your pages, please try the following:

  • Have the tag load after the DOM Loaded event. Caution: not all tags are compatible with this method and the more you delay a tag’s execution the more you loose data in your reports.

This code block allows calling a tag during the DOM Loaded event:

tC_ready = function(){

// Code du tag

}

if (window.addEventListener)

window.addEventListener(‘load’, tC_ready, false)

else if (window.attachEvent)

window.attachEvent(‘onload’, tC_ready)

  • Get in touch with the tag’s editor and request they improve their tag in terms of size or server response. Note: it is possible to include the tag’s JavaScript file in the Commanders Act container while on the “EDIT” tab from the TagCommander interface.

  • Sample the tag from the “RULES” tab from the TagCommander interface. This will improve the average loading time of your site’s pages.

  • Shifting the tag’s execution order from the “GENERATION” (1) tab from the TagCommander interface (place the one taking longer to load at the end of the queue).

  • Use a timeout on your tags from the “GENERATION” (1) tab from the TagCommander interface. This feature interrupts the tag’s execution if it takes too long to load.

  • Deactivate the tag from the “GENERATION” (1) tab from the TagCommander interface (1)

  • Use your tag in a serverside configuration (this entails activating an additional module from the TagCommander product, please contact your account manager or our Support Department for further information). Caution: not all tags are compatible with this method.

For more detailed information on how to set up these methods, please contact our Support Department (support@commandersact.com).