您似乎在未提供 Pinterest 標籤的地區瀏覽此內容。 請查看可供 Pinterest Business 帳號使用 Pinterest 標籤的地區。 瞭解詳情

Squarespace 平台可讓您建立線上商店。只要將您的 Squarespace 商店與 Pinterest 標籤建立關聯,就能瞭解 Pinterest 為您的商店和產品銷售帶動多少流量。

新增基本代碼

基本代碼可讓您取得有關事件的資料,例如有人購買產品或將產品加入購物籃。您網站上的所有頁面均須安裝基本代碼。

  • 在您的 Squarespace 管理員中,瀏覽至「設定」

  • 按一下「進階」,然後按一下「代碼注入」

  • 將以下代碼貼在「Header」中。如果此方塊中已經有代碼,請將您的追蹤代碼貼在此代碼後方:

    <script type="text/javascript">
    !function(e){if(!window.pintrk){window.pintrk=function()
    {window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var
    n=window.pintrk;n.queue=[],n.version="3.0";var
    t=document.createElement("script");t.async=!0,t.src=e;var
    r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)}}
    ("https://s.pinimg.com/ct/core.js"); 
    
    pintrk('load','YourTagID', { em: '{customerEmailAddress}', });
    pintrk('page');
    </script> 
    <noscript> 
    <img height="1" width="1" style="display:none;" alt=""
    src="https://ct.pinterest.com/v3/?tid=YourTagID&noscript=1" /> 
    </noscript>
    

     

  • 使用您的唯一標籤 ID 取代 YOUR_TAG_ID。若要尋找您的唯一標籤 ID,請前往「廣告管理員」,並按一下「廣告」,然後找到「轉換追蹤」,按一下「安裝 Pinterest 標籤」下的「開始安裝」

  • 複製唯一標籤 ID 下的 13 位數字,然後將這組數字貼至代碼中的「YOUR_TAG_ID」位置予以取代。

  • 按一下 Squarespace 代碼注入頁面左上方的「儲存」

  • 新增結帳事件

    安裝基本代碼後,您可以新增其他事件以收集其他資料。您可以新增 Checkout 事件,追蹤使用者購買產品和完成交易的時機。

  • 在您的 Squarespace 管理員中,瀏覽至「設定」

  • 按一下「進階」,然後按一下「代碼注入」

  • 向下捲動到「訂單確認頁面」方塊,並將以下代碼貼入方塊中。如果此方塊內已有代碼,請將您的事件代碼貼在此代碼後面:

    <script>
    pintrk('track', 'checkout',{
    value: {orderGrandTotal},
    order_quantity:1
    });
    </script>
    <noscript>
    <img height="1" width="1" style="display:none;" alt=""
    src="https://ct.pinterest.com/v3/?tid=YourTagID&event=checkout&noscript=1"/>
    </noscript>

     

  • 使用您的唯一標籤 ID 取代 YourTagID。若要尋找您的唯一標籤 ID,請前往「廣告管理員」,並按一下「廣告」,然後找到「轉換追蹤」,按一下「安裝 Pinterest 標籤」下的「開始安裝」

  • 按一下 Squarespace 代碼注入頁面左上方的「儲存」

  • End of Other articles Links
    仍需要協助? 請與我們聯繫
    User feedback
    這篇文章是否對您有幫助?

    collection_fields

    我們能如何改善此文章?