burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & Marketing icon chevron
    • Streaming icon chevron

      ksuiteCollaborative suite

      Discover the collaborative suite → Discover →
    • kSuite Professional email, sovereign cloud and AI for sustainable performance
    • kSuite The suite for secure communication, storage and sharing
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Mail Service Create your email addresses with your domain
    • kChat
      kChat Communicate live with your teams
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
    • kChat
      Chk Link reducer & QR code generator
      Find the web hosting solution you need
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with over 100 CMS
    • web hosting
      Wordpress Hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your site access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution

      Cloud services

    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • Cloud Server
      VPS Cloud Create a Windows / Linux server
    • Kubernetes service Deploy your containerised apps on a large scale.
    • VPS Lite
      VPS Lite Create a Windows/Linux server at a low cost
    • Database Service Manage your databases with a managed solution
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • Other services

    • llm api
      AI Tools Boost your productivity with our sovereign AI
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      NAS Synology Rent a NAS in our secure data centers
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • Housing
      Housing Install your servers in our data centers
    • Auth Add a privacy-friendly login method to your apps
      Infomaniak Events, the independent local events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets
    • kdrive
      Access Control Control access to your events with ease
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live radio station online
    • streaming video
      Video-Streaming Create and broadcast live events and TV online
    • VOD and AOD
      VOD & AOD service Host and broadcast your recordings without limits
  • Resources
    documentation icon Documentation
    Guides & tutorials
    API documentation
    special offers icon Special offers
    Get started for free
    Student programme
    Become an affiliate
    partner program icon Partner programme
    Find a partner
    Become a partner
    support icon Support & contact
    Contact Support
    Premium support - 24/7
    Contact our sales department
    Hiring an expert
    Migrate to Infomaniak
  • About us
    forest
    icon Ecological commitment
    We pollute. But we are taking action to reduce the footprint of our services and infrastructure
    Discover our commitment →
    icon About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    icon Security
    Data confidentiality
    Bug Bounty Programme
  • Get started for free
    Sign in
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • Get started for free
    Sign in
Price Price
Knowledge base

1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

Knowledge base Ticketing: insert a Meta / Google tracker on the store

    Ticketing: insert a Meta / Google tracker on the store

    This guide provides the list of triggers to use for your trackers of type Google Tags and Meta pixel (Facebook) for your store (as part of the ticketing system Infomaniak).

     

    These triggers must be inserted into the “HEAD” section of the advanced options on your store.

     

    Examples of Meta pixel and Google Tags

    Refer to the external documentation for the pixel Meta:

    !function(f,b,e,v,n,t,s){
        if(f.fbq)return;
        n=f.fbq=function(){n.callMethod?
        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
        if(!f._fbq)f._fbq=n;
        n.push=n;n.loaded=!0;
        n.version='2.0';
        n.queue=[];
        t=b.createElement(e);
        t.async=!0;
        t.src=v;
        s=b.getElementsByTagName(e)[0];
        s.parentNode.insertBefore(t,s)
    }(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');
    
    document.addEventListener("ike_event_view", function( e ) {
      fbq('init', '14085424191xxxxx');
      fbq('track', "PageView");
      fbq('track', 'InitiateCheckout');
    });
    
    document.addEventListener("ike_cart_payment_launched", function( e ) {
      fbq('init', '14085424191xxxxx');
      fbq('track', "PageView");
      fbq('track', 'Purchase', {value: e.detail.topaid, currency: e.detail.currency.name});
    });

    … and for the Google Tag Manager (GTM) + gtag.js:

    window.dataLayer = window.dataLayer || [ ];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'UA-xxxxxxx-x');
    document.addEventListener("ike_event_view", function( e ) {
      gtag('event', 'view_item', {
        'event_category' : e.name,
        'event_label' : e.date
      });
    });
    
    document.addEventListener("ike_cart_add", function( e ) {
      gtag('event', 'add_to_cart');
    });
    
    document.addEventListener("ike_cart_confirm", function( ) {
      gtag('event', 'checkout_progress', {
      'event_category' :'valid cart'
      });
    });
    
    document.addEventListener("ike_cart_payment_launched", function( e ) {
      gtag('event', 'add_payment_info', {
         'event_category' : 'paiement',
         'event_label' : e.detail.currency.name,
         'value': e.detail.topaid
      });
    });
     

    On Google Tag Manager, make sure the format for the tags is properly respected:

    (view_item|add_cart|add_payment_info)

     

    CSP and its impact on conversion tracking

    The “Content Security Policy” (CSP) is a web security policy that protects pages against certain attacks such as Cross-Site Scripting (XSS) and the injection of malicious content. However, it can also block certain legitimate scripts, such as Meta tracking pixels or Google Tag Manager, thus preventing the proper functioning of conversion tracking.

    Why don't some pixels work?

    If your website displays an error related to the Content Security Policy (CSP), particularly in the console or the network tab of the browser's developer tools, this means that certain third-party scripts—such as Google tags or Meta (Facebook) pixels—are blocked. To ensure proper functioning of conversion tracking on your store, it is necessary to add a specific exception in the CSP configuration of your site to allow the resources used by the Infomaniak ticketing system.

    Main CSP directives impacting tracking

    • script-src‍ : defines the authorized sources for scripts.
    • img-src‍ : controls images (including the <img> tags used for tracking pixels).
    • connect-src‍ : manages tracking requests sent to the servers of marketing tools.

    For example, if you use Google Tag Manager or Facebook Pixel, make sure your CSP policy explicitly allows the loading of scripts and the sending of data to their domains. Here is an example of directives to include in your CSP, to be adapted according to your configuration:

    script-src 'self' https://www.googletagmanager.com https://www.google-analytics.com https://connect.facebook.net;
    img-src 'self' https://www.google-analytics.com https://www.facebook.com;
    connect-src 'self' https://www.google-analytics.com https://www.facebook.com;

    Google provides a detailed guide on configuring CSP compatible with its tracking tools.

    Also, check that your security management system (application firewall, CDN, CMS) does not block these resources, and apply the necessary adjustments to ensure proper triggering of tracking events.

    If your CSP is too restrictive, it can prevent the loading of third-party scripts such as:

    • Facebook Pixel (connect.facebook.net)
    • Google Tag Manager (GTM) (www.googletagmanager.com)
    • Google Analytics (www.google-analytics.com)

    Errors visible in the developer console (Browser Developer Tools):

    Refused to load the script 'https://connect.facebook.net/en_US/fbevents.js'
    because it violates the following Content Security Policy directive: "script-src 'self'"
    • Missing data in Google Analytics or Facebook Ads Manager.
    • Failure to trigger events defined in GTM.

    When the CSP blocks these resources, they cannot collect data on visitors or record conversion events.

     

    Complete list of triggers

    Home page:

    trigger : ike_home_view
    Data : none

    document.addEventListener("ike_home_view", function(e) {
      //send to your tracking tool
    });
     

    Event page:

    A page for an event with multiple dates
    trigger: ike_event_view
    Data: detail.name

    document.addEventListener("ike_home_view", function(e) {
      console.log(e.detail.name);  
      //send to your tracking tool
    });
     

    Date page:

    Page of a date of an event
    trigger : ike_date_view
    Datas : detail.name, detail.date

    document.addEventListener("ike_home_view", function(e) {
      console.log(e.detail.name, e.detail.date);
      //send to your tracking tool
    });
     

    Pass page:

    Page of a pass category
    trigger: ike_abo_view
    Data: detail.name

    document.addEventListener("ike_abo_view", function(e) {
      console.log(e.detail.name);
      //send to your tracking tool
    });
     

    Pass selection page:

    Page for selecting pass dates
    trigger: ike_abo_selection
    Data: detail (cart details)

    document.addEventListener("ike_abo_selection", function(e) {
      console.log(e.detail.name, e.detail.date);
    //send to your tracking tool
    });
     

    User login:

    Triggered on successful login
    trigger: ike_user_login
    Data: detail (cart details)

    document.addEventListener("ike_user_login", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    User logout:

    Triggered when a user logs out
    Data: detail (cart details)

    document.addEventListener("ike_user_logout", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart add:

    Triggered when an item is added to the cart

    Trigger: ike_cart_add
    Data: detail (cart details)

    document.addEventListener("ike_cart_add", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart page:

    Trigger: ike_cart_view
    Data: detail (cart details)

    document.addEventListener("ike_cart_view", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart update:

    Triggered when a cart element is updated

    Trigger: ike_cart_update
    Data: detail (cart details)

    document.addEventListener("ike_cart_update", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart empty:

    Triggered when the empty button is pressed

    Trigger: ike_cart_empty
    Data: detail (cart details)

    document.addEventListener("ike_cart_empty", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart confirm:

    Triggered when the confirm button is pressed

    Trigger: ike_cart_confirm
    Data: detail (cart details)

    document.addEventListener("ike_cart_confirm", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart delivery page:

    Trigger: ike_cart_delivery_view
    Data: detail (cart details)

    document.addEventListener("ike_cart_delivery_view", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart form page:

    Trigger: ike_cart_form_view
    Data: detail (cart details)

    document.addEventListener("ike_cart_form_view", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart payment page:

    trigger: ike_cart_payment_view
    Data: detail (cart details with paymentMethodSelected)

    document.addEventListener("ike_cart_payment_view", function(e) {
      console.log(e.detail);
      //send to your tracking tool 
    });
     

    Cart payment changed:

    Trigger: ike_cart_payment_changed
    Data: detail.path

    document.addEventListener("ike_cart_payment_changed", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart payment launched:

    Trigger: ike_cart_payment_launched
    Data: detail (cart details)

    document.addEventListener("ike_cart_payment_launched", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart payment success page:

    trigger: ike_cart_payment_success
    Data: detail (cart details)

    document.addEventListener("ike_cart_payment_success", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Cart delete item:

    trigger: ike_cart_delete
    Data: detail (previousCart and newCart)

    document.addEventListener("ike_cart_delete", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });
     

    Page Changed:

    trigger: ike_page_changed
    Data: detail.path

    document.addEventListener("ike_page_changed", function(e) {
      console.log(e.detail);
      //send to your tracking tool
    });


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display all FAQs for this product
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse WHOIS

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    ©2025 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse WHOIS

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    ©2025 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.