Classification for Downloads?
Hi, I can't create a Classification for Download links since that "Dimension" does not appear in the dropdown list. How can I solve this? Thanks!
Hi, I can't create a Classification for Download links since that "Dimension" does not appear in the dropdown list. How can I solve this? Thanks!
I believe that @mjdavid007 is talking about the standard "Download Links" dimension....
Unfortunately, some standard dimension don't have classifications available on them.
There are two options...
1. You can turn off automatic download tracking, and create custom download tracking using custom dimensions that can be classified
2. You can add custom dimensions to your automatic download tracking using some code in Do Plugins
s.usePlugins = true;
function s_doPlugins(s) {
if (s.linkType === 'd') {
s.prop1 = "something";
s.prop2 = _satellite.getVar('some data element');
s.events = "event1";
s.linkTrackEvents = "event1";
s.linkTrackVars = s.linkTrackVars ? s.linkTrackVars + ",prop1,prop2" : "prop1,prop2";
}
}
Basically, before the beacon is sent, this code will run, and check if the link type is a download link...
If it will, you can see whatever dimensions you want (I used prop1 with a literal value, and prop2 pulling a value from a Data Element called "some data element"), as well as attach any events you might want.
If you have events, you will need to set the s.linkTrackEvents to include each event, and you will need to set s.linkTrackVars with all the dimensions that you want included in the call... I did a shortform if statement to doublecheck if there is anything already set in s.linkTrackVars, and append the new dimensions... or if nothing, make sure that s.linkTrackVars is set to the list of dimensions to include.
In my example, this will add prop1, prop2 and event1 onto all the automated download links.
If you want to have a simple way to get the Download URL into a custom dimension, you could use Adobe's Dynamic Variable notation:
s.usePlugins = true;
function s_doPlugins(s) {
if (s.linkType === 'd') {
s.prop1 = "D=pev1";
s.linkTrackVars = s.linkTrackVars ? s.linkTrackVars + ",prop1" : "prop1";
}
}
D=pev1 tells Adobe to duplicate the value of Page Event 1 (the downloaded file's URL) into the specified variable, in this case, prop1.
Then you can create classifications on Prop1.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.