Solved it here is how:
- Connect your site to Google Analytics (www.google.ca/analytics)
- Create a campaign URL (support.google.com/analytics/answer/1033867?hl=en)
- OPTIONAL: shorten the URL (www.bitly.com)
- Create a QR code to the URL (www.qrstuff.com/)
- Scan the QR code and watch it appear as a campaign referral under Google Analytics
Here is an explanation to the different steps:
- Once you create an account on Google Analytics, you can connect the site by copying a PHP script or a JavaScript onto every page or in my case (magento) the user code can simply be connected through the configuration settings
- The campaign URL adds information to the URL link of your website just like the current link on stackoverflow.com variables such as noredirect="..." contains info for your server to process, so using the campaign URL could be used as a tag to determine the source of the referral
- Shortening the URL is recommended because the QR code becomes less dense and this in turn reduces the chance of error while scanning the code, the shortened URL links directly to the campaign URL link you provided so it is a seamless process
- QRStuff is a good place to download the QR code image at a high resolution
- So when you scan this is what happens:
CODE SCANNED >> PHONE COMMAND TO GO TO SHORTENED URL LINK >> REDIRECT TO CAMPAIGN URL >> GOOGLE ANALYTICS RECEIVES INFO ABOUT CAMPAIGN REFERRAL >> YOU CAN SEE IT BY LOGIN INTO GOOGLE ANALYTICS