- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
12-12-2016 11:10 AM
Similar to how Google Analytics has it's measurement protocol for sending events, and allows custom/manual/automated events to be sent via that - is there a similar option for DataHub?
I'm hoping a solution may be available that allows for faster processing of data than the omnichannel import, where instead of loading a file with 100k rows, I can run a script that makes 100k server calls ( with maybe a few milliseconds between each one?)
Otherwise the 1M omnichannel upload will be somewhat limiting for larger data sets and profile updates.
Solved! Go to Solution.
12-12-2016 11:13 AM
Hey @Michael_Kim_shc, check out the visitor Data Enrichment API.
12-12-2016 11:34 AM
12-12-2016 01:44 PM
I've tried using the code provided, and fixed a bug so the python code running is now the below - and i'm getting a 200 OK response - but i'm looking at the trace in DataHub and not seeing anything happening.
Also - i'm not seeing any authentication tokens anywhere - is this an open endpoint that doesn't require any kind of authentication other than account and profile name?
import httplib, urllib
params = urllib.urlencode({'data':{'event_name':'myEvent','cp.trace_id':'07244'},'event':'view'})
headers = {"Content-type": "application/json","Accept": "image/gif"}
conn = httplib.HTTPSConnection("collect.tealiumiq.com")
conn.request("POST", "/{myaccount}/{myprofiel}2/i.gif", params, headers)
response = conn.getresponse()
print response.status, response.reason
data = response.read()
conn.close()
12-12-2016 02:21 PM
Can you try going to Discover > Live Events and checking if you see the event feed in there? I'm curious if the UDH isn't receiving the data at all, or if passing the Trace ID is incorrect.
I know for a standard GET call it works by passing in the query string so you may think about going that route (following examples at the top of the previously linked article) instead of a POST if you don't have to pass much data.
Regarding authentication, this is an open endpoint API.
12-12-2016 02:23 PM
Going through the live Events view is going to be rather unwiedly because of the amount of live traffic. Unless there's a way to filter that view?
12-12-2016 02:24 PM
Arg. nevermind I see the add stream by trace now..
12-12-2016 02:27 PM
@Michael_Kim_shc you can also take an existing data variable and pass through a unique value like "page_name":"sundayfunday"
12-12-2016 02:33 PM
Still seeing anything via trace ID, nor a couple different event Attributes I've tried.
Also - in the help doc code, i had to change the help doc code to:
conn = httplib.HTTPSConnection("collect.tealiumiq.com")
(instead of HTTP) and removed the https:// from the URL in order for python to parse.
12-12-2016 03:59 PM
@Michael_Kim_shc I suggest you reach out to your Deployment/Account manage who can align you with an Engineer to help look into this further.
12-13-2016 09:12 AM
Hello @Michael_Kim_shc. I am trying to find your account manager now. Stay tuned...
01-10-2017 11:19 AM
I am also trying to do a exact same thing. Were you able to solve this by contacting account manager and have an engineer look at it.
Also I had one questions about trace_id. Can the trace_id be any number or should I start one trace in UDH and for that trace I would POST data to the endpoint ?
01-10-2017 01:34 PM - last edited on 01-10-2017 01:36 PM by kathleen_jo
Hey @aniket_mane, I believe you need to create a trace ID from the UDH and then pass that within the vdata call. From there you would then create a stream filtering for the trace ID and you can see the events flow in that way. If you are having difficulties please let me know what specifically is happening so I can investigate further or by all means use our support portal via https://support.tealiumiq.com.
01-10-2017 02:10 PM
01-10-2017 02:13 PM
01-10-2017 02:14 PM
01-11-2017 12:45 PM
Hello All,
I tried doing this with the below steps
1) Started a new trace in AS UI
2) Used the POST Python code on site and did some modification based on this feedback on this post to get a 200 OK response.
import httplib, urllib
params = urllib.urlencode({'data':{'event_name':'abc_score','tealium_trace_id':'09098','abc_score':'0.56','customer_id':'9999999'},'event':'view'})
headers = {"Content-type": "application/json","Accept": "image/gif"}
conn = httplib.HTTPSConnection("collect.tealiumiq.com")
conn.request("POST", "/<account>/<profile>/2/i.gif", params, headers)
response = conn.getresponse()
print response.status, response.reason
data = response.read()
conn.close()
3) We did DISCOVER --> TRACE . Nothing is there . It just says LISTENING events. We did DISCOVER --> LIVE STREAM --> 0 events etc.
Could anyone help out here.
Thanks,
Aniket
01-11-2017 01:09 PM
01-11-2017 02:44 PM
01-11-2017 04:06 PM - last edited on 01-11-2017 04:43 PM by kathleen_jo
Hi @craig_rouse and @Michael_Kim_shc,
We tried using "cp.trace_id" in Python but no success. The code gave 200 OK response but nothing in AudienceStream UI . In the DISCOVER --> LIVE EVENTS nothing was coming(it was saying LISTENING EVENTS). Then I started a trace using chrome extension and put the trace id from website . I visited website and did activities. We started seeing the visit events but not the event fired from our python code using vdata enrichment.
Is there any other way you tested it to make sure it worked even after getting 200 OK response ?
Thanks,
Aniket
01-11-2017 04:41 PM
01-12-2017 11:45 AM
01-12-2017 12:06 PM
01-12-2017 12:56 PM
01-12-2017 02:12 PM
Copyright All Rights Reserved © 2008-2023