title: Google Campaign & Analytics URLs with .htaccess
body: <p>One of our clients is launching a campaign around our city and one of the requirements they want is to track from what item a visitor has scanned in a QR code. To achieve this I have entered this into my .htaccess file:</p>
  
  <pre><code>RewriteRule ^(beermat|poster|flyer)$ /video?utm_source=$1&amp;utm_medium=PrintedMaterial&amp;utm_campaign=VideoCampaign2012 [R=301] 
  </code></pre>
  
  <p>So if anyone scans in the QR code that has the address: <a href="http://www.website.com/beermat" rel="nofollow">http://www.website.com/beermat</a> it redirects to /video with the relevant attributes.</p>
  
  <p>If I have the google analytics code on the /video page this should work, correct?</p>