Pixel Tracking API Source Documentation
Tracking pixels (aka beacon, 1×1 gif, or clear gif) allow for tracking email opens, advertising impressions and checkout pages where JavaScript and POST requests are disallowed, but where you can embed an image.
Follow Segment’s HTTP Tracking API to leverage the /pixel
API endpoint, which accepts base64 encoded url ?data
Pixel API endpoint signature:
https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>
Pixel Routes
/v1/pixel/identify
/v1/pixel/group
/v1/pixel/alias
/v1/pixel/page
/v1/pixel/screen
/v1/pixel/track
Each endpoint always responds with a 200 <empty-gif>
Example Email Opened event:
Create the payload:
{
"writeKey": "YOUR_WRITE_KEY",
"userId": "025pikachu025",
"event": "Email Opened",
"properties": {
"subject": "The Electric Daily",
"email": "[email protected]"
}
}
Note: you must include either a userId
or anonymousId
Encode it using base64 and make sure it’s URL safe:
Protip: You can accomplish this with WindowBase64 methods:
eyJ3cml0ZUtleSI6ICJZT1VSX1dSSVRFX0tFWSIsICJ1c2VySWQiOiAiMDI1cGlrYWNodTAyNSIsICJldmVudCI6ICJFbWFpbCBPcGVuZWQiLCAicHJvcGVydGllcyI6IHsgICAic3ViamVjdCI6ICJUaGUgRWxlY3RyaWMgRGFpbHkiLCAgICJlbWFpbCI6ICJwZWVrQXRNZUBlbWFpbC5wb2tlIiB9fQ
Add an image tag to your email newsletter with src
pointing to a Pixel API route:
<img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ICJZT1VSX1dSSVRFX0tFWSIsICJ1c2VySWQiOiAiMDI1cGlrYWNodTAyNSIsICJldmVudCI6ICJFbWFpbCBPcGVuZWQiLCAicHJvcGVydGllcyI6IHsgICAic3ViamVjdCI6ICJUaGUgRWxlY3RyaWMgRGFpbHkiLCAgICJlbWFpbCI6ICJwZWVrQXRNZUBlbWFpbC5wb2tlIiB9fQ">
If you have any questions, or see anywhere we can improve our documentation, please let us know!
相關推薦
Pixel Tracking API Source Documentation
Tracking pixels (aka beacon, 1×1 gif, or clear gif) allow for tracking email opens, advertising impressions and checkout pages where JavaScript and POST re
Salesforce Marketing Cloud Source Documentation
This is currently in beta. If you are interested in joining, let us know!Salesforce Marketing Cloud, formerly known as ExactTarget, is a marketing automati
Facebook Lead Ads Source Documentation
The Facebook Lead Ads Source is currently in beta! If you have any feedback for us, please reach out.OverviewFacebook Lead Ads help you capture contact inf
pydub API Documentation
Pydub API Documentation https://github.com/jiaaro/pydub/blob/master/API.markdown This document is a work in progress. If you're looking for some
Datmo: the Open Source tool for tracking and reproducible Machine Learning experiments
As data scientists frequently training models while in grad school and at work, we've faced many challenges in the model building process. This problem has
Ask HN: How to generate API documentation from .md/.rst files?
How would you go about generating single-page API documentation using either .md or .rst files? Is there a managed service available? Something like Stripe
flume ng進擊之路 (三) —— 自定義source API開發
概述 關於flume ng的簡單介紹,可以參考flume ng進擊之路 (一)—— 入門,同時flume ng也提供了各種各樣的source和sink介面供我們在生成環境中使用,但是在生產環境中,我們常常需要定製的source或者sink來滿足我們的要求。
AWS Documentation is Now Open Source and on GitHub
Earlier this year we made the AWS SDK developer guides available as GitHub repos (all found within the awsdocs organization) and invited intereste
What can you do with cloud source data? Documentation
What kind of data do you pull from each source?In general, we’ve focused on pulling all of the collections directly related to the customer experience. We
How do I handle common cloud source errors? Documentation
The most common reasons why sources will have trouble is due to authentication or permission issues. When the issue is authentication-related, you'll see a
Can I use the Profile API on the client-side? Documentation
For security reasons, we require the Profile API only be used server-side. The Profile API allows you to look up data about any user given an identifier (e
How do we implement an e-commerce tracking plan? Documentation
When tracking your data, it’s important to set yourself up for success. E-commerce and retail companies want to use their data to understand why some custo
Do you have an Audiences API? Documentation
Currently you can add, remove, and modify audiences only by using the Personas in-app audience builder.However, you can programmatically query the Profile
How do I find my source slug? Documentation
Your source slug can be found in the URL when you’re looking at the source destinations page or live debugger. The URL structure will look like this:If you
What’s a tracking plan and why should you care? Documentation
We’ve helped thousands of companies implement customer data tracking, and in that time we’ve observed that the companies that have the most success leverag
Is Segment impacted by Intelligent Tracking Prevention? Documentation
Intelligent Tracking Prevention (ITP) is a new feature that was launched with Apple’s Safari 11 browser. ITP is a machine learning model used to identify a
Quora Conversion Pixel Destination Documentation
Quora Conversion Pixel enables you to attribute downstream user actions on your website to your ad campaigns running on Quora.com. Our client-side Destinat
(轉載)eclipse中tomcat 編寫web 出現 servlet-api.jar has no source attachment 問題
eclipse中tomcat 編寫web 出現 servlet-api.jar has no source attachment 問題 https://www.iyunv.com/forum.php?mod=viewthread&tid=96915&fromu
Jpush丟掉.os檔案報錯了cn.jpush.android.api.JPushInterface.init(Unknown Source)
今天一直用svn檢出程式碼來執行,發現程式報錯 at cn.jpush.android.service.ServiceInterface.a(Unknown Source) 一開始以為是程式碼出錯,點選logcat中的錯誤資訊,跳轉到Jpush那個init()方法那裡!
kafka (搜索) 在idea api操作(官方apihttp://kafka.apache.org/documentation/#producerapi)
減少 tails ray valueof 記錄 org 代理 交互 為我 https://blog.csdn.net/isea533/article/details/73822881 這個不推薦,可以看一下(https://www.cnblogs.c