Template:2011FR/Form-section-processing: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 109: Line 109:


// ************************Do not change without the permission of Faulkner***************************
// ************************Do not change without the permission of Faulkner***************************
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.'
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.';

+ getQuerystring( 'template' ).replace("Lp-layout-","") + '~'
+ getQuerystring( 'appeal-template' ).replace("Appeal-template-","") + '~'
if(getQuerystring( 'template' )=='')
document.paypalcontribution.utm_source.value += 'default' + '~';
+ getQuerystring( 'appeal' ).replace("Appeal-","") + '~'
else
+ getQuerystring( 'form-template' ).replace("Form-template-","") + '~'
+ getQuerystring( 'form-countryspecific' ).replace("Form-countryspecific-","") + '.'
document.paypalcontribution.utm_source.value += getQuerystring( 'template' ).replace("Lp-layout-","") + '~';
if(getQuerystring( 'appeal-template' )=='')
+ paymentType;
document.paypalcontribution.utm_source.value += 'default' + '~';
else
document.paypalcontribution.utm_source.value += getQuerystring( 'appeal-template' ).replace("Appeal-template-","") + '~';
if(getQuerystring( 'appeal' )=='')
document.paypalcontribution.utm_source.value += 'default' + '~';
else
document.paypalcontribution.utm_source.value += getQuerystring( 'appeal' ).replace("Appeal-","") + '~';
if(getQuerystring( 'form-template' )=='')
document.paypalcontribution.utm_source.value += 'default' + '~';
else
document.paypalcontribution.utm_source.value += getQuerystring( 'form-template' ).replace("Form-template-","") + '~';
if(getQuerystring( 'form-countryspecific' )=='')
document.paypalcontribution.utm_source.value += 'control';
else
document.paypalcontribution.utm_source.value += getQuerystring( 'form-countryspecific' ).replace("Form-countryspecific-","");

document.paypalcontribution.utm_source.value += '.' + paymentType;


document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );

Revision as of 07:18, 19 December 2011