Aanmelden

Welkom bij ons Support Center

Voor hulp met integratie en live campagnes.

Welkom bij ons Support Center. Voor hulp met integratie en live campagnes.

Handleiding BigCommerce-tags en feedintegratie

 

Overzicht

Gebruik deze handleiding bij het genereren van een productfeed en bij het installeren van de Criteo-tags op uw BigCommerce-site.

Een productfeed genereren

U kunt een Google Shopping-feed genereren door deze instructies te volgen.

De Criteo OneTag installeren

De meeste tags zijn geschikt om te kopiëren en plakken, maar misschien moet u er enkele bewerken afhankelijk van de aanpassingen aan uw site. Volg deze vijf eenvoudige stappen om de Criteo OneTag te implementeren:

  1. Click Storefront Design in the left panel
    image37.png
  2. Click Themes
    image36.png
  3. Click More, and then Template Files
    image40.png
  4. Now you can find and edit each template. Simply add the relevant Criteo OneTag at the end of the template. For example, the default.html is for the homepage
    image38.png
  5. Copy+paste each of the following tags into the corresponding templates.
    Homepage Template > default.html
    <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
    <script type="text/javascript">
    window.criteo_q = window.criteo_q || [];
    window.criteo_q.push(
            { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },
            { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },
          { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },        
    { event: "viewHome"}
    );
    </script>

    Listing Template > category.html
    <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
    <script type="text/javascript">
    window.criteo_q = window.criteo_q || [];
    window.criteo_q.push(
    { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },
    { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },
    { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },
    { event: "viewList", item: ["FIRST PRODUCT ID", "SECOND PRODUCT ID", "THIRD PRODUCT ID"] }
    );
    </script>

    Product Template > product.html
    <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script> 
    <script type="text/javascript">
    window.criteo_q = window.criteo_q || [];
    window.criteo_q.push(
    { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },
       { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },
        { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },        
    { event: "viewItem", item: "YOUR PRODUCT ID" }
    );
    </script>

    Basket Template > cart.html
    <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
    <script type="text/javascript">
    window.criteo_q = window.criteo_q || [];
    window.criteo_q.push(
    { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },
    { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },
    { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },
    { event: "viewBasket", item: [
    { id: "FIRST PRODUCT ID", price: FIRST PRODUCT UNIT PRICE, quantity: FIRST PRODUCT QUANTITY },
    { id: "SECOND PRODUCT ID", price: SECOND PRODUCT UNIT PRICE, quantity: SECOND PRODUCT QUANTITY }
    /* add a line for each product in the user's basket */
    ]});
    </script>
    De Sales-tag implementeren
  1. Go to Advanced Settings > Web Analytics > Enable Google Analytics. Then click Save
    image39.png
  2. Go to Google Analytics tab
    If you use Google Analytics, click the link and then copy+paste the source code. Just remember to update the code with your own Google Analytic ID and domain.
  3. Click for Sale Tag (with GA)
    image41.png

  4. Gebruikt u Google Analytics niet? Kopieer en plak de alternatieve broncode.
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script> 
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
window.criteo_q.push(        
{ event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },        
{ event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },    
{ event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },        
{ event: "trackTransaction", id: "TRANSACTION ID", item: [
{ id: "FIRST PRODUCT ID",  price: FIRST PRODUCT UNIT PRICE,  quantity: FIRST PRODUCT QUANTITY },                                                                                  
{ id: "SECOND PRODUCT ID", price: SECOND PRODUCT UNIT PRICE, quantity: SECOND PRODUCT QUANTITY }                                                                     
/* add a line for each product in the user's basket */
]});
</script>

Hoe kan ik de tags testen?

Support Center

In ons Support Center vindt u meer bronnen om uw te helpen bij de integratie. U kunt ook contact opnemen met uw Technical Solutions Engineer bij Criteo.

Was dit artikel nuttig?
Aantal gebruikers dat dit nuttig vond: 0 van 0
Mogelijk gemaakt door Zendesk