Dynamically generate a QR Code image in HMTL designs
Splio allows you to dynamically generate a QR code within your emails and landing pages.
QR code Url and parameters
Because the QR code can return anything from text to URL, there is only one parameter:
data. You can include anything you like.
To include an URL to the QR Code, write
Generate a QR code from a database field
The same way you would for a barcode, you can insert dynamic content to the QR Code, by inserting a variable.
For instance, you could redirect a contact to your website, directly on their favorite brand's page, if the field is present in database:
Generating the QR Code in an HTML Email
To have the image generated directly in your email, you can use the URL directly in the source of the image, as such:
<img style="width:70px;" src="http://www.splio4.com/barcode/qrcode.pl?data=http%3A%2F%2Fmywebsite.com%2F$favorite_brand$">
QR Code image size
The example above shows a QR code of 70px wide. Consider the number of characters your QR Code must render, as the more there are characters, the more details (rows and columns) it will have, and the required scanning distance and size will vary.
Examples of QR code containing an URL:
|Type||URL (unencoded)||QR Code||QR Code image URL|
|Google Maps URL||https://www.google.fr/maps/place/103+Boulevard+Haussmann,+75008+Parisemail@example.com,2.315308,17z/data=!3m1!4b1!4m2!3m1!1s0x47e66fc98404ef03:0xd5c0c4fd77b8e7de||
/!\ Using accents, extended characters or URL
When including special characters or and URL, characters and spaces must be encoded, except for Splio's variables.
For instance, to have the QR code redirect to
http://mywebsite.com, the URL will have to be encoded as such:
With a variable, the url will look as such:
You can use an URL encoder such as this one to encode your URLs and special characters.