Asynchronous-Server-Side-Events Beispiele

Diese Anwendungsbeispiele zeigen u. A., wie mit Hilfe von DC-FPX_append-Tags die Payload zusammengesetzt wird.

Wegweiser: Asynchronous-Server-Side-Events

Alternativ zu den DC-FPX_append-Tags können die zu erstellenden JSON-Daten auch mit der JSON-Schnittstelle erzeugt werden. Siehe 5 JSON-Daten neu erstellen und modifizieren.

Inhalt

1. Facebook Conversion API

2. Facebook Conversion API inkl. Verwendung von URL-Parametern und Cookie-Informationen

3. Newsletter-Anmeldung bei einem externen Dienstleister über ein WEBSALE Inquiry

 

1. Facebook Conversion API

Shopkonfiguration

<ASSE>
   <+Entry>
      ID                 = fbconversionapi                        
      Endpoint           = https://graph.facebook.com/v10.0/PIXELID/events?access_token=ZUGRIFFSCHLÜSSEL
      Type               = POST   
      ContentType        = application/json
      ServiceCategory    = Tracking
      <DefinitionOfOk>
         <+ConditionGroup>
            <+Condition>
               Proof     = HTTPStatusCode
               Type      = value
               Value     = 200
            </+Condition>
         </+ConditionGroup>
      </DefinitionOfOk>
   </+Entry>
</ASSE>

Referenz: Abschnitt ASSE

Templates

Bei der Facebook Conversion API gibt es natürlich mehrere Events, die abgeschickt werden können. Kopieren Sie folgende Beispiele in die gewünschten Templates:

PageView

~DC-FPFireJSON_set({"data":[{"event_name":"PageView","event_time": $DC-DateTime_unixtimestamp$)~
~DC-FPFireJSON_append(,"user_data": {"external_id": "$WS-SID$"}}]})~
~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

ViewContent

~DC-FPFireJSON_set({"data":[{"event_name":"ViewContent","event_time": $DC-DateTime_unixtimestamp$)~
~DC-FPPRName_set($PR-Name_StripHtml$)~
~DC-FPFireJSON_append(,"custom_data":{"content_name": "$DC-FPPRName_jsonencoding$")~
{CAT-PathData}
   ~DC-Int2_set(0)~
   ~DC-FPFireJSON_append(,"content_category": ")~
   {@CAT-PathRegular}
      ~DC-FPCatName_set($CAT-Name$)~
      ~DC-FPFireJSON_append({!DC-Int2(0)} > {/!DC-Int2(0)}$DC-FPCatName_jsonencoding$$DC-Int2_inc$)~
   {/@CAT-PathRegular}
{/CAT-PathData}
~DC-FPFireJSON_append(","content_ids": ["$PR-ProdIndex$"])~
~DC-FPFireJSON_append(,"content_type": "product")~
~WS-DisablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"value": $PR-Price$)~
~WS-EnablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
~DC-FPFireJSON_append(},"user_data": {"external_id": "$WS-SID$"})~
~DC-FPFireJSON_append(}]})~
~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

AddToCard

~DC-FPFireJSON_set({"data":[{"event_name":"AddToCart","event_time": $DC-DateTime_unixtimestamp$)~
~DC-FPPRName_set($BASKET-PR-Name$)~
~DC-FPPRName_set($DC-FPPRName_StripHTML$)~
~DC-FPFireJSON_append(,"custom_data":{"content_name": "$DC-FPPRName_jsonencoding$")~
{Cat-PathData($BASKET-PR-CatIndex$)}
   ~DC-Int2_set(0)~
   ~DC-FPFireJSON_append(,"content_category": ")~
   {@CAT-PathRegular}
      ~DC-FPCatName_set($CAT-Name_StripHtml$)~
      ~DC-FPFireJSON_append({!DC-Int2(0)} > {/!DC-Int2(0)}$DC-FPCatName_jsonencoding$$DC-Int2_inc$)~
   {/@CAT-PathRegular}
{/Cat-PathData($BASKET-PR-CatIndex$)}
~DC-FPFireJSON_append(","content_ids": ["$BASKET-PR-ProdIndex$"])~
~DC-FPFireJSON_append(,"content_type": "product")~
~WS-DisablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"value": $BASKET-PR-Price$)~
~WS-EnablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
~DC-FPFireJSON_append(},"user_data": {"external_id": "$WS-SID$"})~
~DC-FPFireJSON_append(}]})~
~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

InitiateCheckout

~DC-FPFireJSON_set({"data":[{"event_name":"InitiateCheckout","event_time": $DC-DateTime_unixtimestamp$)~
~DC-FPFireJSON_append(,"custom_data":{)~
{BASKET-PR-Data}
   ~DC-Int2_set(0)~
   ~DC-FPFireJSON_append("contents": [)~
   ~WS-DisablePriceAndNumberFormat~
   {@BASKET-PR-Data}
      ~DC-FPFireJSON_append({!DC-Int2(0)},{/!DC-Int2(0)}{"id": "$BASKET-PR-Number$",)~
      ~DC-FPFireJSON_append("quantity": $BASKET-PR-Quantity$,"item_price": $BASKET-PR-Price$})~
      ~DC-Int2_inc~
   {/@BASKET-PR-Data}
   ~WS-EnablePriceAndNumberFormat~
{/BASKET-PR-Data}
~DC-FPFireJSON_append(],"content_type": "product")~
~WS-DisablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"value": $BASKET-OrderTotal$)~
~WS-EnablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
~DC-FPFireJSON_append(},"user_data": {"external_id": "$WS-SID$"})~
~DC-FPFireJSON_append(}]})~
~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

Purchase

~DC-FPFireJSON_set({"data":[{"event_name":"Purchase","event_time": $DC-DateTime_unixtimestamp$)~
~DC-FPFireJSON_append(,"custom_data":{)~
{BASKET-PR-Data}
   ~DC-Int2_set(0)~
   ~DC-FPFireJSON_append("contents": [)~
   ~WS-DisablePriceAndNumberFormat~
   {@BASKET-PR-Data}
      ~DC-FPFireJSON_append({!DC-Int2(0)},{/!DC-Int2(0)}{"id": "$BASKET-PR-Number$",)~
      ~DC-FPFireJSON_append("quantity": $BASKET-PR-Quantity$,"item_price": $BASKET-PR-Price$})~
      ~DC-Int2_inc~
   {/@BASKET-PR-Data}
   ~WS-EnablePriceAndNumberFormat~
{/BASKET-PR-Data}
~DC-FPFireJSON_append(],"content_type": "product")~
~WS-DisablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"value": $BASKET-OrderTotal$)~
~WS-EnablePriceAndNumberFormat~
~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
~DC-FPFireJSON_append(},"user_data": {"external_id": "$WS-SID$"})~
~DC-FPFireJSON_append(}]})~
~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

Wegweiser: Asynchronous-Server-Side-Events
Referenz: Frei verwendbare DesignControl-Tags DC-FPX
Referenz: DC-FPX_set()
Referenz: DC-FPX_append
Referenz: ASSE-Fire()


Hinweis:

Weitere Informationen zur Facebook API finden Sie in der Facebook Entwicklerdokumentation

 

2. Facebook Conversion API inkl. Verwendung von URL-Parametern und Cookie-Informationen

Shopkonfiguration

<ASSE>
   <+Entry>
      ID                 = fbconversionapi                        
      Endpoint           = https://graph.facebook.com/v10.0/PIXELID/events?access_token=ZUGRIFFSCHLÜSSEL
      Type               = POST   
      ContentType        = application/json
      ServiceCategory    = Tracking
      <DefinitionOfOk>
         <+ConditionGroup>
            <+Condition>
               Proof     = HTTPStatusCode
               Type      = value
               Value     = 200
            </+Condition>
         </+ConditionGroup>
      </DefinitionOfOk>
   </+Entry>
</ASSE>

Referenz: Abschnitt ASSE

Fügen Sie zusätzlich folgenden <+Hash>-Abschnitt innerhalb von <DesignControl> in die Shopkonfiguration shop.config ein, um Kundendaten zu verschlüsseln. Vergeben Sie eine ID und einen eigenen Secret-Schlüssel.

<DesignControl>
   <+Hash>
     ID        = fbconversionhash
     Secret    = Jp4xullRcy6DXTPSTKBGXAvGGTaT04iiUQXPj0ob
   </+Hash>
   ...
</DesignControl>

Referenz: DesignControl

Templates

Bei der Facebook Conversion API gibt es natürlich mehrere Events, die abgeschickt werden können. Kopieren Sie folgende Beispiele in die gewünschten Templates:

PageView

~DC-FPFireJSON_set({"data":[{"event_name":"PageView","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~
   
   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   
   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}
   
   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

ViewContent

~WS-DisablePriceAndNumberFormat~
~DC-FPFireJSON_set({"data":[{"event_name":"ViewContent","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~
   ~DC-FPFireJSON_append(,"content_category":)~

   {CAT-PathData}
      ~DC-Int3_set(0)~
      ~DC-FPFireJSON_append(")~
      {@Cat-PathRegular}
         ~DC-Int3_Inc~
         {!DC-Int3(1)}~DC-FPFireJSON_append( > )~{/!DC-Int3(1)}
         ~DC-FPFireJSON_append($Cat-Name_StripHtml$)~
      {/@Cat-PathRegular}
      ~DC-FPFireJSON_append(")~
   {/CAT-PathData}

   ~DC-FPFireJSON_append(,"content_ids": ["$PR-Number$"])~
   {ST-DepVar_OK}
      ~DC-FPFireJSON_append(,"content_type": "product")~
   {/ST-DepVar_OK}
   {!ST-DepVar_OK}
      ~DC-FPFireJSON_append(,"content_type": "product_group")~
   {/!ST-DepVar_OK}
   ~DC-FPFireJSON_append(,"value": $PR-Price$)~
   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~
   ~WS-EnablePriceAndNumberFormat~

ViewCategory

~DC-FPFireJSON_set({"data":[{"event_name":"ViewCategory","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~

   {Cat-Data}
      ~DC-FPFireJSON_append(,"content_name": "$Cat-Name_StripHtml$")~
      ~DC-FPFireJSON_append(,"content_category":)~
      {CAT-PathData}
         ~DC-Int3_set(0)~
         ~DC-FPFireJSON_append(")~
         {@Cat-PathRegular}
            ~DC-Int3_Inc~
            {!DC-Int3(1)}~DC-FPFireJSON_append( > )~{/!DC-Int3(1)}
            ~DC-FPFireJSON_append($Cat-Name_StripHtml$)~
         {/@Cat-PathRegular}
         ~DC-FPFireJSON_append(")~
      {/CAT-PathData}
   {/Cat-Data}

   {Cat-Data}
      ~DC-Int2_set(0)~
      ~DC-FPFireJSON_append(,"content_ids": [)~
      {@PR-Data}
         ~DC-Int2_inc~
         {DC-CompareDigitLTE($DC-Int2$,10)}
            ~DC-FPFireJSON_append({!DC-Int2(1)},{/!DC-Int2(1)}"$PR-Number$")~
         {/DC-CompareDigitLTE($DC-Int2$,10)}
      {/@PR-Data}
      ~DC-FPFireJSON_append(])~
      ~DC-FPFireJSON_append(,"content_type": "product")~
   {/Cat-Data}

   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

AddToCard

~DC-FPFireJSON_set({"data":[{"event_name":"AddToCart","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~

   ~DC-Int1_set(0)~
   {BASKET-PR-Data}
      ~DC-FPNumberString_set()~
      {@BASKET-PR-Data}
         {BASKET-PR-NewProduct}
            ~DC-Int1_Inc~
            {!DC-Int1(1)}~DC-FPNumberString_append(,)~{/!DC-Int1(1)}
            ~DC-FPNumberString_append("$BASKET-PR-Number$")~
         {/BASKET-PR-NewProduct}                 
         {BASKET-PR-ChangedProduct}
            ~DC-Int1_Inc~
            {!DC-Int1(1)}~DC-FPNumberString_append(,)~{/!DC-Int1(1)}
            ~DC-FPNumberString_append("$BASKET-PR-Number$")~
         {/BASKET-PR-ChangedProduct}
      {/@BASKET-PR-Data}
   {/BASKET-PR-Data}

   ~DC-FPFireJSON_append(,"content_ids":[$WS-DisableXSSProtectionOnce$$DC-FPNumberString$])~

   {PR-Data}
      ~WS-DisablePriceAndNumberFormat~
      ~DC-FPFireJSON_append(,"value": $PR-Price$)~
      ~WS-EnablePriceAndNumberFormat~
   {/PR-Data}

   ~DC-FPFireJSON_append(,"content_type": "product")~

   ~DC-Int1_set(0)~
   ~DC-FPFireJSON_append(,"content_category":)~
   {Cat-PathData}
      ~DC-Int3_set(0)~
      ~DC-FPFireJSON_append(")~
      {@Cat-PathRegular}
         ~DC-Int3_Inc~
         {!DC-Int3(1)}~DC-FPFireJSON_append( > )~{/!DC-Int3(1)}
         ~DC-FPFireJSON_append($Cat-Name_StripHtml$)~
      {/@Cat-PathRegular}
      ~DC-FPFireJSON_append(")~
   {/Cat-PathData}

   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

AddToWishlist

~DC-FPFireJSON_set({"data":[{"event_name":"AddToWishlist","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~

   {PR-Data}
      ~DC-FPFireJSON_append(,"content_ids":["$PR-Number$"])~
      ~WS-DisablePriceAndNumberFormat~
      ~DC-FPFireJSON_append(,"value": $PR-Price$)~
      ~WS-EnablePriceAndNumberFormat~
   {/PR-Data}

   ~DC-FPFireJSON_append(,"content_type": "product")~
   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

InitiateCheckout

~DC-FPFireJSON_set({"data":[{"event_name":"InitiateCheckout","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~

   {BASKET-PR-Data}
      ~DC-Int2_set(0)~
      ~DC-FPFireJSON_append(,"content_ids": [)~
      {@BASKET-PR-Data}
         ~DC-Int2_inc~
         ~DC-FPFireJSON_append({!DC-Int2(1)},{/!DC-Int2(1)}"$BASKET-PR-Number$")~
      {/@BASKET-PR-Data}
      ~DC-FPFireJSON_append(])~
   {/BASKET-PR-Data}
   ~DC-FPFireJSON_append(,"content_type": "product")~
   ~DC-FPFireJSON_append(,"value": $BASKET-TechnicalOrderTotal$)~
   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
      ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
   ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

Purchase

~DC-FPFireJSON_set({"data":[{"event_name":"Purchase","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~

   {BASKET-PR-Data}
      ~DC-Int2_set(0)~
      ~DC-FPFireJSON_append(,"contents": [)~
      {@BASKET-PR-Data}
         ~DC-Int2_inc~
         ~DC-FPFireJSON_append({!DC-Int2(1)},{/!DC-Int2(1)}{"id": "$BASKET-PR-Number$",)~
         ~DC-FPFireJSON_append("quantity": $BASKET-PR-Quantity$,"item_price": $BASKET-PR-TechnicalPrice$})~
      {/@BASKET-PR-Data}
      ~DC-FPFireJSON_append(])~
   {/BASKET-PR-Data}

   {BASKET-PR-Data}
      ~DC-Int2_set(0)~
      ~DC-FPFireJSON_append(,"content_ids": [)~
      {@BASKET-PR-Data}
         ~DC-Int2_inc~
         ~DC-FPFireJSON_append({!DC-Int2(1)},{/!DC-Int2(1)}"$BASKET-PR-Number$")~
      {/@BASKET-PR-Data}
      ~DC-FPFireJSON_append(])~
   {/BASKET-PR-Data}

   ~DC-FPFireJSON_append(,"content_type": "product")~
   ~DC-FPFireJSON_append(,"value": $BASKET-TechnicalOrderTotal$)~
   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~
   
   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

Search

~DC-FPFireJSON_set({"data":[{"event_name":"Search","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~
   ~DC-FPFireJSON_append(,"search_string": "$WS-Search$")~
   
   {Cat-Data}
      ~DC-Int2_set(0)~
      ~DC-FPFireJSON_append(,"content_ids": [)~
      {@PR-Data}
         ~DC-Int2_inc~
         {DC-CompareDigitLTE($DC-Int2$,10)}
            ~DC-FPFireJSON_append({!DC-Int2(1)},{/!DC-Int2(1)}"$PR-Number$")~
         {/DC-CompareDigitLTE($DC-Int2$,10)}
      {/@PR-Data}
      ~DC-FPFireJSON_append(])~
   {/Cat-Data}
   ~DC-FPFireJSON_append(,"content_type": "product_group")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~
   
   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   
   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}
   
   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

CompleteRegistration

~DC-FPFireJSON_set({"data":[{"event_name":"CompleteRegistration","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~
   ~DC-FPFireJSON_append(,"value": $BASKET-TechnicalOrderTotal$)~
   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

AddPaymentInfo

~DC-FPFireJSON_set({"data":[{"event_name":"AddPaymentInfo","event_time": $DC-DateTime_unixtimestamp$)~
   ~DC-FPFireJSON_append(,"action_source": {!WS-AppVersion}"website"{/!WS-AppVersion}{WS-AppVersion}"other"{/WS-AppVersion})~
   ~DC-FPFireJSON_append(,"event_source_url": "$URL-Homepage$$WS-RequestURI$")~

   {BASKET-PR-Data}
      ~DC-Int2_set(0)~
      ~DC-FPFireJSON_append(,"content_ids": [)~
      {@BASKET-PR-Data}
         ~DC-Int2_inc~
         ~DC-FPFireJSON_append({!DC-Int2(1)},{/!DC-Int2(1)}"$BASKET-PR-Number$")~
      {/@BASKET-PR-Data}
      ~DC-FPFireJSON_append(])~
   {/BASKET-PR-Data}

   ~DC-FPFireJSON_append(,"content_type": "product")~
   ~DC-FPFireJSON_append(,"value": $BASKET-TechnicalOrderTotal$)~
   ~DC-FPFireJSON_append(,"currency": "$WS-Currency$")~
   ~DC-FPFireJSON_append(,"user_data": {)~
   ~DC-FPFireJSON_append("client_user_agent": "$WS-UserAgent$")~
   ~DC-FPFireJSON_append(,"client_ip_address": "$WS-ClientIPAddr$")~

   ~CheckCookie-TouchData(_fbc)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbc": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}
   ~CheckCookie-TouchData(_fbp)~
   {CheckCookie-DataOK}
      ~DC-FPFireJSON_append(,"fbp": "$CheckCookie-Data$")~
   {/CheckCookie-DataOK}

   {ST-LoggedIn}
      ~DC-FPUserUserIndex_set($A-UserIndex$)~
      ~DC-FPFireJSON_append(,"external_id": "$DC-FPUserUserIndex_hash(sha256,hex,fbconversionhash)$")~
      {A-E-Mail}
         ~DC-FPUserEMail_set($A-E-Mail$)~
         ~DC-FPFireJSON_append(,"em": "$DC-FPUserEMail_hash(sha256,hex,fbconversionhash)$")~
      {/A-E-Mail}
      {A-Phone}
         ~DC-FPUserPhone_set($A-Phone$)~
         ~DC-FPFireJSON_append(,"ph": "$DC-FPUserPhone_hash(sha256,hex,fbconversionhash)$")~
      {/A-Phone}
      {A-Salutation}
         ~DC-FPUserSalutation_set($A-Salutation$)~
         ~DC-FPFireJSON_append(,"ge": "$DC-FPUserSalutation_hash(sha256,hex,fbconversionhash)$")~
      {/A-Salutation}
      {A-DateofBirth}
         ~DC-FPUserDateofBirth_set($A-DateofBirth$)~
         ~DC-FPFireJSON_append(,"db": "$DC-FPUserDateofBirth_hash(sha256,hex,fbconversionhash)$")~
      {/A-DateofBirth}
      {A-LastName}
         ~DC-FPUserLastName_set($A-LastName$)~
         ~DC-FPFireJSON_append(,"ln": "$DC-FPUserLastName_hash(sha256,hex,fbconversionhash)$")~
      {/A-LastName}
      {A-FirstName}
         ~DC-FPUserFirstName_set($A-FirstName$)~
         ~DC-FPFireJSON_append(,"fn": "$DC-FPUserFirstName_hash(sha256,hex,fbconversionhash)$")~
      {/A-FirstName}
      {A-City}
         ~DC-FPUserCity_set($A-City$)~
         ~DC-FPFireJSON_append(,"ct": "$DC-FPUserCity_hash(sha256,hex,fbconversionhash)$")~
      {/A-City}
      {A-ZIP}
         ~DC-FPUserZIP_set($A-ZIP$)~
         ~DC-FPFireJSON_append(,"zp": "$DC-FPUserZIP_hash(sha256,hex,fbconversionhash)$")~
      {/A-ZIP}
      {A-Country}
         ~DC-FPUserCountry_set($A-Country$)~
         ~DC-FPFireJSON_append(,"country": "$DC-FPUserCountry_hash(sha256,hex,fbconversionhash)$")~
      {/A-Country}
   {/ST-LoggedIn}

   ~DC-FPFireJSON_append(})~
   ~DC-FPFireJSON_append(}]})~
   ~ASSE-Fire(fbconversionapi,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

Wegweiser: Asynchronous-Server-Side-Events
Referenz: Frei verwendbare DesignControl-Tags DC-FPX
Referenz: DC-FPX_set()
Referenz: DC-FPX_append
Referenz: ASSE-Fire()
Referenz: CHECK- (URL- und Cookie-Daten)


Hinweis:

Weitere Informationen zur Facebook API finden Sie in der Facebook Entwicklerdokumentation

 

3. Newsletter-Anmeldung bei einem externen Dienstleister über ein WEBSALE Inquiry

Es wird ein WEBSALE Inquiry benötigt. Der Kunde gibt seine Newsletter-Anmeldedaten dann in das WEBSALE Inquiry ein. Die eingegebenen Daten werden über die ASSE an den externen Newsletter-Dienstleiter übergeben.

In diesem Beispiel ist der externe Newsletteranbieter Newsletter2Go.

Shopkonfiguration

<ASSE>
   <+Entry>
      ID                = newslettersubscribe
      Endpoint          = https://api.newsletter2go.com/forms/submit/XXXXXXXX-XXXXXXXX-XXXX?type=subscribe
      Type              = POST
      ContentType       = application/json
      ServiceCategory   = Tracking
      <AdditionalHeaders>
         <+HttpHeader>
            Name        = Accept
            Value       = application/json
         </+HttpHeader>
         <+HttpHeader>
            Name        = accept-encoding
            Value       = deflate, gzip
         </+HttpHeader>
      </AdditionalHeaders>
      <DefinitionOfOk>
         <+ConditionGroup>
            <+Condition>
               Proof    = HTTPStatusCode
               Type     = value
               Value    = 201
            </+Condition>
         </+ConditionGroup>
         <+ConditionGroup>
            <+Condition>
               Proof    = HTTPStatusCode
               Type     = value
               Value    = 200
            </+Condition>
         </+ConditionGroup>
      </DefinitionOfOk>
   </+Entry>
</ASSE>

Referenz: Abschnitt ASSE

Inquiry-Template

~DC-FPFireJSON_set({"recipient":{)~
~DC-FPFireJSON_append("email":"~A-EMail_value~",)~
~DC-FPFireJSON_append("first_name":"~A-FirstName_value~",)~
~DC-FPFireJSON_append("last_name":"~A-LastName_value~")~
~DC-FPFireJSON_append(},"lists":[],"captcha":{}})~
~ASSE-Fire(newslettersubscribe,$WS-DisableXSSProtectionOnce$$DC-FPFireJSON$)~

Wegweiser: Asynchronous-Server-Side-Events
Referenz: Frei verwendbare DesignControl-Tags DC-FPX
Referenz: DC-FPX_set()
Referenz: DC-FPX_append
Referenz: ASSE-Fire()