This article introduces how to merge event sending in Adobe Analytics server-side deployment. For example, when the page is opened, PageView, Product Impression, Internal Promotion, and other events may be sent… These events are merged and sent, so that only consumption is A Server Call.
Suppose I am tracking a website and there is Product Impression on the page. I want to combine PageView and Product Impression and send them. How should I do this?
To create DataStream and Schemes, please see Adobe Analytics Server-side Tracking(Via Web SDK)
Update Schemas
Update Schemas so that Schemas can be used for all events. Adobe Analytics ExperienceEvent Template, Adobe Analytics ExperienceEvent Full Extension and Consumer Experience Event will be used in the Filed Group.
An Adobe Analytics ExperienceEvent Template needs to be added to the Product List items. This is used to set eVar and events in the product.
Rule 1: Track PageView
XDM Pageview
This XDM is used to track basic pagevew:
XDM Variable
This XDM is used to track other events, such as tracking Product Impression here:
XDM | Pageview
Merge PV and other events (Product Impression) into the same XDM:
All Page : Library Load : 50 : PageView : TAG[Adobe Analytics]
The default Order of this Rule is 50.
Adobe Experience Platform Web SDK – Send event is used to trigger and send PageView, in which the XDM must select the merged XDM | Pageview.
Adobe Experience Platform Web SDK – Update variable is used to clear the value to avoid appearing in the next Server Call. Check “Clear existing value”, similar to Clear Variable in client deployment. Its configuration is:
Rule 2: Track Product Impression
All Page : Library Load : 45 : ArticleImpression : TAG[Adobe Analytics]
It should be noted in this step that the Order should be smaller, that is, the execution should be faster, and it must be merged before the PageView is sent.
Adobe Experience Platform Web SDK – Update variable is used to merge Product Impression data. It should be noted here that the product array structure in %productImpression% is different from that of the client. It needs to be adjusted to a data structure suitable for the server side.
Data Verification
Use configId to filter in the network of browser developer tools.