I am using Google Analytics API and I want to get through the API the schema csv header for a Custom Data Source.
I am using the list method for Custom Data Sources as it is the single endpoint available: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/customDataSources/list
This returns the list of Custom Data Sources but it doesn't return the schema field for the list of items.
In the list of fields for a Custom Data Source the schema field exists: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/customDataSources
Is there any parameter that needs to be added to the request to also get the schema field?
Related
When it comes to creating/updating custom objects, can I use both dedupeFields or lookupField when pushing the data to Marketo?
What is the difference between the two?
I'm not sure what do you mean under lookupField, as there is no such input field described in the API documentation of the Sync Custom Objects endpoint. (That is the endpoint to create or update custom objects.)
In the other hand, you do not need such a standalone lookup field, as with the input array you provide the objects you want to create or update, with all their important values. Have a look at the sample payload in the docs.
When input is used together with the optional dedupeBy and action fields, you have full control over which object you want to create or update.
Also, the endpoint expects the name of the dedupe field under dedupeBy key, as opposed to dedupeFields. So the name is singular; you can provide a single field name use, and it does what you can expect: if the value in the field for a given record is not unique, an error will be returned for the individual record.
Does anyone know how to export all custom object records from Marketo Custom Object using REST API? I read the documentation but it looks like I can only query some of the records (I couldn't get it working) and I need to export all of them. Any ideas?
http://developers.marketo.com/rest-api/lead-database/custom-objects/
http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Custom_Objects/getCustomObjectsUsingGET
I want to query the google analytics realtime api using one of my custom dimensions.
In the regular api (not realtime) I can do this as follows:
'metrics': 'ga:pageviews',
'filters': 'ga:pagePath=~/myPath*;ga:dimension2=='+myVal
However, when I change the metrics to 'rt:activeUsers', I got the error:
"Unknown dimension(s): ga:dimension2"
when I did the request.
I changed the separator in the filters string from semi-colon to & and I didn't get the error any more, but the result always returns 0
Is it possible to do filtering on the realtime api? TIA
The realtime API does not support custom dimensions (you can see the list of supported dimensions and metrics here). On possible reason is that at least the values for session- and user-scope dimensions cannot be determined in realtime since realtime reports based on hits. So you cannot filter based on a custom dimension.
There is a possible workaround, but that comes with a caveat that makes it mostly pointless. You can create an additional data view, and then use an advanced filter to copy the custom dimension value for the hit to a dimension supported by the realtime API - e.g. you extract the value from your custom dimension and copy it to the "source" field (or some other field). Then you query for/ filte by the source field to retrieve the value. The caveat is that the original value of the source data field (or whatever field you overwrote) will be lost.
Campaign Tracking
I have created a URL variable with Component type as Query and Query key as source. I have created Tag that fires on all page in the TAG i have enable field to set option
Fields to set
Field Name Value
campaignSource {{source_utm}} were source_utm is URL variable that I have created.
TAG is getting fired and data is getting populated. In the debug mode following data is reflecting
Filed to set {campaignSource: '123'}
URL is like this : www.xyz.com/?source=123
My Query were would I will be able to see the campaign data in GA as i am not able see the data in campaign report. Also would like to know how long it take for campaign data to get populate in GA.This are the only steps I have followed do I need to follow more other steps also .Also I would like to know how can I access Field to set data in Google Analytics report. Please advice thanks
I am uploading some documents in Marklogic Server (doc, docx, pdf, txt etc). Now I am building an interface in HTML & XQuery that allows a user to enter a search term and if that matches the contents of any documents, then that document name is displayed in the grid. I am using search:search API for searching. Now I also want to show last modified date and author of the document in the grid. Every windows document have last modified date and author property. But how can I get this information from search:search API so that I can show these information in the grid ?
If you have enabled the settings "maintain last modified," Marklogic keeps the last modified information in document property fragments. However, this is unrelated to the properties information kept in Windows, which are lost by default when you load them in Marklogic.
If you want to retain the Windows properties data, set up a filter in Information Studio to populate the Marklogic property fragments with the data. Alternately, you could write your own XSLT and use xdmp:document-filter() to store the data directly in the document.
Once you have loaded your documents and populated them with the properties you need, you can access the data directly if stored in the document, or using xdmp:document-properties() if stored in document properties.