Adwords tracking with anchor url

Hi,

i am using piwik to track my adwords campaign. One of my target url is "mywebsite.de/#anchorelement"
my tracking template looks like that:
{lpurl}?pk_campaign={campaignid}&pk_kwd={keyword}&pk_source=google&pk_medium=cpc&pk_content={creative}

If a user clicks on my adwords ad the url is:
mywebsite.de/#anchorelement?pk_campaign=11111&pk_kwd=secretkeyword&pk_source=google&pk_medium=cpc&pk_content=0

So the problem now is, that the anchor element has to be at the end of the url…otherwise the anchor isn’t working.

Does anyone know a solution how to achive this? So that the final url is looking like mywebsite.de/?pk_campaign=11111&pk_kwd=mykeyword&pk_source=google&pk_medium=cpc&pk_content=0#anchorelement

Thanks for your help :slight_smile: