Update 1/21/2015: This tip no longer works due to changes in the way Infusionsoft processes emails. Sorry!
QR codes are an easy way to encode customer-specific data into a format that can be scanned using your phone or tablet. Adding a QR code to an Infusionsoft email is easy to do, and you can even make each QR code unique by adding the customer’s email address or other identifiable information. You can use the Infusionsoft API to look up customers, add tags, or perform other actions once their QR code is scanned. This works great for event registration systems.
For this example we are going to use the QRicket API. This is a free, powerful API that allows you to regularly create up to 5,000 QR codes per day. If you need more than that, then you may need to load some free QR code generating software onto your server.
Due to a bug in Infusionsoft’s image handler, it takes a bit of finagling to make this tip work. I’ll walk you through it step-by-step:
First, you need to decide what URL the QR code is going to take the visitor to. For this example, we are just going to pre-populate a web form with the person’s name and email address. In real-life you’d probably have this go to a script on your own server that uses the API to check-in a customer for an event or add custom tags to the contact record. Our full URL would look something like this:
Notice that we are using merge fields to put the contact’s name and email address in the URL. This will cause the web form to automatically be pre-filled.
Next you need to use the QRicket API. The most basic usage is pretty easy, and would look like this:
I took the URL we want the contact to end up at, and added a QRickit URL to the front. You can change the size of the QR code by modifying qrsize=300. You can also change the colors or add a label. Check out QRicket’s webpage for a full list of options.
Now take your complete QR code URL, and URL encode it. This step is necessary because of a bug in the image handler used in Infusionsoft emails. This encoding can easily be done at the ASCII to Hex website. Paste your entire URL into the first box (Text) and click Convert. Your encoded URL will appear in the URL Encoded box. For this example, the encoded URL is:
Almost there! Add an HTML snippet to your email with the following contents, replacing YOUR_APP with your Infusionsoft app name, and PUT_YOUR_ENCODED_URL_HERE with your URL encoded URL from the previous step:
<img src="https://YOUR_APP.infusionsoft.com/jspServ/imagegetter.jsp?url=PUT_YOUR_ENCODED_URL_HERE" />
That’s it! You now have a contact-specific QR code in your email. The QR code will be different for each of your recipients, assuming you added unique merge fields to your URL. With a little work and the Novak Solutions SDK, you can do just about anything when the QR code gets scanned.