当前位置: 动力学知识库 > 问答 > 编程问答 >

php - .htaccess with UTM parameters

问题描述:

I have a .htaccess file successfully configured on my server, but would like an elegant way of telling Google Analytics where my traffic is coming from. Those utm tags in the query string are just plain ugly...

I have this (for instance):

RewriteRule ^([A-Za-z0-9-]+)-twitter/?$ index.php?p=a&a=$1&utm_source=TwitterFeed&utm_medium=Auto&utm_campaign=TwitterFeed [NC,QSA]

This successfully displays the page, but Analytics won't pick up the utm tags. Any ideas? I've googled, but nothing appropriate showing!

分享给朋友:
您可能感兴趣的文章:
随机阅读: