'Tik Tok Web events not attributing
I am using Tik Tok API to submit events to the pixel -> https://ads.tiktok.com/marketing_api/docs?id=1701890979375106
The example curl request is this one:
curl --include \\
--request POST \\
--header "Content-Type: application/json; charset=utf-8" \\
--header "Access-Token: <my access token>" \\
--data-binary "
{
\\"pixel_code\\": \\"<my pixel id>\\",
\\"event\\": \\"SubmitForm\\",
\\"event_id\\": \\"2i48s279965aaaaeb0cfb4213_2k2i37d11c519cccca8021ab8\\",
\\"timestamp\\": \\"2021-09-15T04:53:30+00:00\\",
\\"context\\": {
\\"ad\\": {
\\"callback\\": \\"<my ttclid here>\\"
},
\\"page\\": {
\\"url\\": \\"index.php\\"
},
\\"ip\\": \\"<my ip here>\\",
\\"user_agent\\": \\"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 musical_ly_21.1.0 JsSdk/2.0 NetType/WIFI Channel/App Store ByteLocale/en Region/US RevealType/Dialog isDarkMode/0 WKWebView/1\\"
},
\\"properties\\": {
\\"currency\\": \\"USD\\",
\\"value\\": 12
}
}" \\
https://ads.tiktok.com/open_api/v1.2/pixel/track/
Note that the values in <> are substituted properly with real values
The response that I get from Tik Tok is in this format:
{"code": 0, "message": "OK", "request_id": "<my request id>", "data": {}}
I can see the events appearing in the Tik Tok ads manager, but they are not being attributed to the pixel:
I am passing in the correct IP, UA + ttclid.
Did anyone have this issue before? On a side note, did anyone have an issue with ttclid not passed in into more than 50% of the ad clicks?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

