Anmelden

Willkommen in unserem Support Center

Hier erhalten Sie Hilfe zu Integration und Live-Kampagnen.

Willkommen in unserem Support Center. Hier erhalten Sie Hilfe zu Integration und Live-Kampagnen.

So integrieren Sie Tags und Feeds in Ihre BigCommerce-Website

 

Übersicht

Dieser Leitfaden unterstützt Sie bei der Erstellung eines Produkt-Feeds und erläutert, wie Sie Criteo OneTag auf Ihrer BigCommerce-Website installieren.

So generieren Sie einen Produkt-Feed:

Folgen Sie diesen Anweisungen, um einen Google Shopping-Feed zu generieren.

So installieren Sie Criteo OneTag:

Die Tags können in der Regel einfach kopiert und eingefügt werden. Die individuellen Einstellungen auf Ihrer Website erfordern aber in manchen Fällen eine Anpassung. Mit den folgenden fünf einfachen Schritten installieren Sie Criteo OneTag:

  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>
    So implementieren Sie den Sales Tag:
  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. Sie verwenden Google Analytics nicht? Dann fügen Sie den folgenden alternativen Sourcecode ein.
<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>

Wie teste ich die Tags?

Support-Center

Weitere Informationen und Ressourcen zur Integration finden Sie in unserem Support Center. Oder Sie kontaktieren ganz einfach Ihren Technical Solutions Engineer bei Criteo.

War dieser Beitrag hilfreich?
0 von 0 fanden dies hilfreich
Powered by Zendesk