Expand my Community achievements bar.

SOLVED

Tagging mass assets

Avatar

Level 2

I have a requirement to tag about 40,000 pdf files that are upload to DAM. What is the best way to tag them? I am trying to write a script to achieve this. Please let me know if there is another way to do this.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can write event handlers that tag assets using the Tag Manager API in AEM: 

http://scottsdigitalcommunity.blogspot.ca/2015/03/creating-aem-event-listener-that.html

PS - in future - post AEM questions in the AEM communtiy - you posted the oriignal one in the DTM community. 

View solution in original post

5 Replies

Avatar

Employee

Hi Vishal,

If you are planning to track these PDF links in Analytics you can do that using a very simple configuration in DTM or s_code file.

In DTM you need to select the checkbox "Track download links" under the "Link Tracking" section of the Analytics tool. Please refer to the attached screenshot.[img]Link Tracking_DTM.png[/img]

For changes in JavaScript you can refer to the below article:

https://marketing.adobe.com/resources/help/en_US/sc/implement/link_automatic.html

~Kaushal

Avatar

Correct answer by
Level 10

You can write event handlers that tag assets using the Tag Manager API in AEM: 

http://scottsdigitalcommunity.blogspot.ca/2015/03/creating-aem-event-listener-that.html

PS - in future - post AEM questions in the AEM communtiy - you posted the oriignal one in the DTM community. 

Avatar

Employee Advisor

Hi,

You can use the taggIng API to achieve this. But from what I think, that's not the real issue, but rather: How do you determine the tags you want to apply to each PDF?

kind regards,
Jörg

Avatar

Level 2

I think I need tags.. because the main requirement is to provide a search page that can filter pdf files based on the tags.

Avatar

Level 2

I have a tag associated to each of pdf's in an excel. I put them into a hashmap with <filename, tag>. then for every file read, i fetch its tag and then tag it. I am using Tag API to tag them. I just wanted to know if there is any alternative coz I need to spend time writing code.