Hello - I wish to achieve the following:
1. Append tracking parameters to links that a visitor has shared
2. shorten all such links
URL = http://www.advanced-web-metrics.com/index-test.php (line 132 onwards):
For 1. if I just use the following code, all appears to work:
<script type="text/javascript">
var addthis_config = {
data_ga_property: 'UA-1190129-1',
data_ga_social: true
};
var addthis_share = {
url_transforms : {
add: {
utm_source : '{{code}}',
utm_medium : 'social network',
utm_campaign : '{{title}}'
}
}
}
</script>
However, if I shorten by using the following code, the utm_source value is ALWAYS 'twitter', no matter which share button I choose. Can that be fixed?
<script type="text/javascript">
var addthis_config = {
data_ga_property: 'UA-1190129-1',
data_ga_social: true
};
var addthis_share = {
url_transforms : {
add: {
utm_source : '{{code}}',
utm_medium : 'social network',
utm_campaign : '{{title}}'
},
shorten: {
twitter: 'bitly',
google_plusone: 'bitly',
gmail: 'bitly',
facebook: 'bitly'
},
},
shorteners: {
bitly: {
login: 'brianclifton',
apiKey: 'R_f21e7dc5b8765e6ec3a64952dfb72e10'
}
}
}
</script>
This question is closed to new answers.