I have a data table on a page and works like backend code reads the product data.. and throws it in page. the product data lying in AEM
We have activity map in analytics that counts automatically the number of clicks happening on each category type. I want to create an experience in Target where the most clicked category automatically rolls on top of the column Is it possible via target?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Step 3 for token replacement is so that the top row of your table will dynamically display the most clicked category. So when you create your offer in Target, the top row of the table will reference ${user.categoryAffinity}.
For example:
<table>
<tr>
<th>Product</th>
</tr>
<tr>
<td>${user.categoryAffinity}</td>
</tr>
<tr>
<td>Shoes</td>
</tr>
<tr>
<td>Hats</td>
</tr>
</table>
In terms of how Target reads what is clicked the most - you will need some sort of event handler, so each time someone clicks, you would send a request to Target that includes that user.categoryId parameter with the value of the product clicked on. Target then automatically stores all of these clicks and calculates the favourite product, 2nd favourite etc etc
Views
Replies
Total Likes
Yes, if you implement Category Affinity then you can create your Experience in Target where the top item in the table is a dynamic reference to "favourite category", the second item references "second category" etc etc
@alexbishop you mean the data table will get automatically updated even without any code logic?
Questions:
I understand the category affinity algorithm and how it works. But need to understand how to implement this user.category parameter? Also, is creating a category affinity audience enough or do I need to have user.category parameter also created and passed?
Also, tell me what kind of Target activity it would be and what would be goal metrics?
Thanks
@Gaureshk_Kodag as per your response here https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/category-affinity/m-p/559314... on old thread of me ""you'll first need to pass category as a mbox param inside user.categoryId parameter" How this will be implemented? Is it via Adobe Launch and how?
Because we usually pass the global mbox parameter on page load via logic "adding params to all request" in launch and inside that we pass the param name and map it to data element.
Can you explain how user.category thing will be implemented?
Thanks in advance
Questions:
You need to use "token replacement" when you create the offer, as explained here. So for example, the content in the first row of your table would reference ${user.categoryAffinity}.
Hi @alexbishop thanks for your thoughts, To your first answer
1) I got it how to pass user.categoryId as a mbox parameter but it should get mapped to who?
I would like to tell you that I have product pages in a hierarchy like below
level1 level2 level3 level4
https://www.abc.com/Product-Line/Product-Category/Product-Family/Part-Number
For example:
when a user navigates from level 1 to level 4 the product tag in digital data layers keeps updating with info for the product tag:
And, I want to run a generic XT activity that can work on all the levels of pages as mentioned above. I don't want to run on a specific page. Is that possible? I am asking this because the URL differed for every product line and down the pages till level 4 product pages but the data layer has a product tag that gets automatically filled up when you flow down the line from Product Line to Part number.
However, my question remains the same How can I update the data table as per the analytics web clicks on items of the table using category affinity. For reference again, the backend code reads the product data from AEM.. and throws it in the page.
@PratheepArunRaj what are your thoughts on this?
For the first part, if it's Product Lines that you want to display, then you will need to create a data element that takes the value of productInfo.productLine, and then map that data element to user.categoryId in Tags.
What I've suggested so far will allow you to update the table dynamically based on the behaviour of each user. It won't update the table based on the combined behaviour of all users.
Views
Replies
Total Likes
Thank you for the explanation that makes total sense. Can you tell me what that means how this be implemented in my case?
You need to use "token replacement" when you create the offer, as explained here. So for example, the content in the first row of your table would reference ${user.categoryAffinity}.
I am following like below steps"
The next step you mentioned is Token Replacement, I am not sure where & how to use it. where this steps is needed and why? Unfortunately, there are no video tutorials of Target in this case.
One thing I want to highlight here is my data tables exists on
Product Category Pages (with rows telling Product family type)
and Product Family Pages (showing product family part numbers) for precise navigation of userS.
I am not sure how the target will read which is getting clicked most in the table and do the affinity thing. Can you elaborate on that? I understand it's individual user based but then what is the role of table autoupdate then?
Views
Replies
Total Likes
@alexbishop any suggestions on the above reply? Thanks
Views
Replies
Total Likes
Step 3 for token replacement is so that the top row of your table will dynamically display the most clicked category. So when you create your offer in Target, the top row of the table will reference ${user.categoryAffinity}.
For example:
<table>
<tr>
<th>Product</th>
</tr>
<tr>
<td>${user.categoryAffinity}</td>
</tr>
<tr>
<td>Shoes</td>
</tr>
<tr>
<td>Hats</td>
</tr>
</table>
In terms of how Target reads what is clicked the most - you will need some sort of event handler, so each time someone clicks, you would send a request to Target that includes that user.categoryId parameter with the value of the product clicked on. Target then automatically stores all of these clicks and calculates the favourite product, 2nd favourite etc etc
Views
Replies
Total Likes
Views
Like
Replies