Camapign parameters are getting ignored

Support group,

I am setting campaign values per javascript API prior to a trackPageView call; I validated that all properties are properly set but the campaign informaiton seems to get ignored both in the request and in the reports online.

Anything wrong with the below code that would give an exaplanation? I am setting custom values for URL and DocumentTitle (variables are being defined prior).

I am running 2.17.0.

var u=“”;
_paq.push([‘setTrackerUrl’, u+‘piwik.php’]);
_paq.push([‘setSiteId’, ‘6’]);
_paq.push([‘setCustomUrl’, ‘<TMPL_VAR name=url>’]);
_paq.push([‘setDocumentTitle’, ‘<TMPL_VAR name=contentSlug>’]);
var campaign = getParameterByName(‘pk_campaign’);

var secondaryTracker = '';
var secondaryWebsiteId = <TMPL_VAR name=secondary>;
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);

if (campaign) {
_paq.push([‘setCampaignNameKey’, campaign]);
_paq.push([‘setCampaignKeywordKey’, ‘anything’]);