doutuo3575 2018-08-21 09:04
浏览 51

GA转换将交易链接到客户端ID theiconic / php-ga-measurement-protocol

I run an affiliate business and I obtain all my transactions from webgains/awin api. I have the GA client id which looks like this for example: 1735654072.1483261999. Now I want to link this transaction to Google Analytics to see where my users/transactions are coming from. I'm using the following package for this

https://github.com/theiconic/php-ga-measurement-protocol#order-tracking-with-simple-e-commerce

The problem is that the transactions are not linked to the users. What am I doing wrong? Is the client id the correct way to link a transaction and a user?

  • 写回答

1条回答 默认 最新

  • dongzou7134 2018-08-21 10:34
    关注

    I would recommend setting up userId instead of clientId, clientId is meant for unique user tracking and not for cross browser and device tracking. UserId is the one you are looking for.

    Why not to use clientId for transaction? clientId is based on cookies, if user deletes the cookies, Google Analytics assigns the user a new one, connecting this to transaction will lead you to inaccurate results in user-based tracking.

    You can go through the official implementation guide for userId to know more about it. Note of caution - You will have to send userId to userId enabled view

    评论

报告相同问题?

悬赏问题

  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等