Tagging mass assets | Community
Skip to main content
Level 2
October 16, 2015
Solved

Tagging mass assets

  • October 16, 2015
  • 5 replies
  • 1882 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

5 replies

Kaushalendra
Adobe Employee
Adobe Employee
October 16, 2015

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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. 

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

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

Level 2
October 16, 2015

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

Level 2
October 16, 2015

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.