Skip to main content
Level 2
Sep 2, 2024 12:16 PM UTC
Solved

Category Affinity calculation without changing at.js

Hi, 

I want to implement the Category Affinity algorithm on my site.  The issue is that the tag management setup is via another team.  So I'll have to pass them the request to add the mbox parameters as per each page.  To make the tagging of pages effective and easy, it will be great if we can change it at our end.  So I am curious if we can add the tags via our content management tool itself - any meta tags that can show the category that can be picked up by Adobe Target?

Thank you so much!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kandersen-1
kandersen-1Accepted solution
Community Advisor and User Group Leader
Sep 29, 2024 10:53 AM UTC

Hi @sujaniko 
I see a couple of options for you. 

1. If you via your CMS system can inject javascript code (ideally in the head tag and if so, be aware it needs to be after your TagManager script), you can use targetPageParams function to pass the categoryId as a parameter - more details here: https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/at-js-implementation/functions-overview/targetpageparams

 

2. As an alternative you should also be able to set the category via a profile script. 

 

I would prefer option 1.

1 reply

kandersen-1
Community Advisor and User Group Leader
kandersen-1Community Advisor and User Group LeaderAccepted solution
Community Advisor and User Group Leader
Sep 29, 2024 10:53 AM UTC

Hi @sujaniko 
I see a couple of options for you. 

1. If you via your CMS system can inject javascript code (ideally in the head tag and if so, be aware it needs to be after your TagManager script), you can use targetPageParams function to pass the categoryId as a parameter - more details here: https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/at-js-implementation/functions-overview/targetpageparams

 

2. As an alternative you should also be able to set the category via a profile script. 

 

I would prefer option 1.

Translate