Applovin像素安装说明

结账前事件由安装的官方APP ( Axon ) 负责上报
page_view, view_item, add_to_cart

结账后续事件由收款插件负责上报 begin_checkout, add_payment_info, purchase

一.点击下方链接,参考applovin官方说明 安装并连接applovin账号

https://support.axon.ai/en/growth/promoting-your-websites/axon-pixel-integration/shopify-integration

二.收款插件配置

1.收款插件找到 More > Integrations > AppLovin

1.1.填入事件ID

1.2.填入产品厂商(vendor) 和 Applovin产品类目ID

Applovin 类目ID 请到下面的官方文档里面找

https://support.axon.ai/en/growth/promoting-your-websites/axon-pixel-integration/events-and-objects#category-ids

厂商(vendor)请到产品编辑页面添加(名称需要与域名一致)

参数对应如下图所示

2.添加COOKIE代码

收款插件:More > Integrations >PPFunnels Extension

代码:

function getDomainForCookie() {
  const hostname = window.location.hostname;

  const parts = hostname.split('.');
  const mainDomain = parts.length >= 2 ?
    '.' + parts.slice(-2).join('.') :
    '.' + hostname;
  return mainDomain;
}


function getCookie(name) {
  const cookies = document.cookie.split('; ');
  for (const cookie of cookies) {
    const [cookieName, cookieValue] = cookie.split('=');
    if (cookieName === name) {
      return decodeURIComponent(cookieValue);
    }
  }
  return null;
}
function setCookie(name, value) {
  const path = '/';
  const sameSite = 'Lax';
  const expireDays = 365;

  const expirationDate = new Date();
  expirationDate.setDate(expirationDate.getDate() + expireDays);

  document.cookie = `${name}=${value}; expires=${expirationDate.toUTCString()}; domain=${getDomainForCookie()}; path=${path}; SameSite=${sameSite}`;
}

const axwrtValue = getCookie('_axwrt');
setCookie('axwrt', axwrtValue);

像素安装完毕!

三.安装浏览器插件检查像素是否安装正确

1.安装axon浏览器插件

https://chromewebstore.google.com/detail/axon-pixel-helper/cbnepobjhiakaeolafffknhlmmbhigbk

2.从产品页开始走结账流程,看看像素事件是否都有激活


已发布

分类

来自

标签: