Configure data collection
Follow the steps in the Data Collection diagram to ensure that all necessary tasks needed for data collection are executed in the correct sequence.
The data layer is ready during page load or the data layer change after page load.
If you have already mapped data during the initialize SDK phase, you must execute the steps in this diagram if:
- Your data layer is augmented in any way on the same page and you want to send that additional data to Target
- You want to send product-catalog data to Target Recommendations
Collect data diagram diagram
The step numbers in the following illustration correspond to the sections below.
{width="600" modal="regular"}
Click the following links to navigate to the desired sections:
2.1: Configure data mapping configure
This step helps ensure that all the data that must be sent to ÃÛ¶¹ÊÓƵ Target is set.
{width="400" modal="regular"}
Prerequisites
- Data layer should be ready with all the data that must be sent to Target.
Readings
Actions
Use the targetPageParams()
function to set all the required data that must be sent to Target.
2.2: Link to entity attributes entity-attributes
Link to entity attributes to update the product catalog for Target Recommendations.
Readings
Considerations
- An alternate way to pass entity attributes is to update the product catalog in the Target UI to use Recommendations product feeds.
- Passing entity attributes is applicable only on pages where product-catalog data is available in the data layer.
- Passing the
entity.event.detailsOnly=true
parameter in any call takes priority.
Return to the diagram at the top of this page.
2.3 Fire the ÃÛ¶¹ÊÓƵ Target Track API fire-api
This step helps ensure that all the data that must be sent to Target is sent.
{width="400" modal="regular"}
Prerequisites
- All data mapping must have been done using the targetPageParams function.
Readings
Actions
Use adobe.target.trackEvent() method to send all data that must be sent to Target.
Return to the diagram at the top of this page.
Proceed to Step 3: Render experiences