Tips, Tricks & Best Practices

MBailet
Participant

Personalized custom images in an email

SOLVE

Hello All,

 

I have every month 30 newsletter to send. 80% is the same contant for all, 20% is personalized. i.e. the top logo.

 

So i would like to automatically change this top logo : create custom personalised images in my email.

 

I tried with smart rules : but with smart rules i need to create 30 versions manually.

What i want is creating 1 version with 1 custom field and this filed is filled with the right image. 

 

I tried : 

* creating a company property called ''personalisedlogo''

* Fill all these properties with a logo URL (hosted on a Hubspot files folder)

* Insert a personalised field in the email (jeton de personnalisation in FRench)

Didn't work.

 

then, I replaced the personased field with an html code

<p>
<img scr ="{{company.personalisedlogo}}" alt ="company logo" width ="100" height= "auto">
</p>

 

and guess what.... i didn't work 😞

 

I this possible to insert Custom personnalised images in an email ?  (without having of creating 30 versions in a smart content field)

 

Here is what i want to make. 

MBailet_0-1644921086603.png

 

Thanx in advance for your help.

 

Marc (French Hubspoter)

 

 

2 Accepted solutions
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Personalized custom images in an email

SOLVE

Hi @MBailet,

 

Your approach should actually work – I just tested this on my end with a contact property. (Could you explain why you created a company property? In any case, both should work.)

 

Just to confirm your own approach: When you work with a custom property, you need to fill this property with the image URL on each contact/company record. When the email is sent, HubSpot is pulling the link from the URL field for each contact record.

 

If that sounds correct, could you double check you're following the correct syntax, especially the space characters within the curly brackets?

<img src="{{ contact.personalisedlogo }}" alt="personalised logo">

 

How are you testing whether the images are displayed correctly? You'd have to preview the email for a specific contact:

 

karstenkoehler_0-1644921981342.png

Next screen:

karstenkoehler_1-1644922025919.png

 

 

If that doesn't work, could you share screenshots of what you're seeing?

 

There might also be other approaches but I'm not sure I fully understand you're use case. For example, if you set up the email once (with smart rules), you could clone the same email every month and not even have to maintain the URLs, potentially.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

lmlTimolml
Solution
Member | Partner
Member | Partner

Personalized custom images in an email

SOLVE

Hey there,

I might have skipped/forgotten a few steps in the explanation it seems, but I used drag and drop yes 🙂

It seems to not work when just pasting the code into the property (I can't recall if we thought of that when doing this since we imported a huge list). But create an empty property (file: Create new EMPTY property.png) and do the following:

Multiple contacts:
I had 3000 contacts to update so I imported an .xlsx file with their email adresses in one column, named "email" and the personal code in a column named "the propertyname you chose" (In my example: "Personal image test 01" – file: Example-excelfile-import.png).

Single contact:
To change the contact property of a single contact I found that I had to do it using a workflow (file: Use-workflow-to-change-property.png)

To use it in the email I used the drag and drop field for rich text and then inserted the property through "Insert the personalization token" button (file: dragndrop-richtextfield-insert-personalization token-01.png). It should now look like the file: dragndrop-rchtextfield-insert-personalization token-02.

If you preview this as contact that has this property , it should work 🙂


View solution in original post

7 Replies 7
lmlTimolml
Member | Partner
Member | Partner

Personalized custom images in an email

SOLVE

It seems that this does no longer work, when I enter any code in an email text-field and save it, it vanishes. I also tried using an "HTML module", but when reviewing before sending, I get an error saying that HubL kode is not supported in the HTML module. Example:

 

 

<a href="{{ contact.personalized_landing_page }}"><img src="{{ contact.personalized_img }}" alt="Hi, {{ contact.firstname }}" width="100%"></a>

 

 

 
The solution came from a great guy called Anthony, we basically need to set up a new contact property (call it what makes sense to you, but you need to set field type to rich text). In this field you paste in your full code, example here:

 

 

<a title="play video" href="http://yourvideo/here" target="_blank" rel="noopener"><img src="https://your-chosen-thumbnail-here.jpg" width="100%" alt="Click here to watch video" /></a><br /><a href="http://yourvideo/here" target="_blank" rel="noopener">Can't see the video? Follow this link</a><br />

 

 


The only downside is that you can't have any default image or URL (correct me if I'm wrong) that looks good here. A default URL to a default video will only show as a text link, so this solution will only really work when sending it to a list where every contact has data in the custom contact property field that was created for this purpose.

Cheers! Hope this is helpful for someone! And dear Hubspot: A native means of personalizing an image with a link in an e-mail would be much appreciated 😉

EDIT: Also, when sending a test from Hubspot, it won't look right unless you chose to receive the message as a specific contact that meets the requirements. But when the mail gets sent, it shows up right 🙂

rowens8
Participant | Diamond Partner
Participant | Diamond Partner

Personalized custom images in an email

SOLVE

Hey lmlTimolml,

 

I am testing this functionality out and I was able to get the image to show via a custom property using a single line text field property but not with a rich text field property. This was using the design editor to create the base template for the email, and then creating the email using that template.

 

Are you using the design editor or using the drag and drop editor?

 

I would prefer to use the drag and drop editor if possible, and it would be great if you could provide more details on how you made your solution work. 

 

Here's the step by step I took to get this to work -

  1. Created the custom property single line text {{ contact.Test-Dynamic-Image-URL }}
  2. Populated the property with a URL
  3. Edited the source code of a template in Design Editor - the main body element of the email. (image below)
  4. Published that updated template
  5. Created and email using the new template (image below)
  6. Preview shows the image with a populated custom property (image below)

I tried a few ways to get it to work in the drag and drop editor but couldn't get the preview to work. 

 

Would be great if you can help

 

Thanks

Rich

 

0 Upvotes
lmlTimolml
Solution
Member | Partner
Member | Partner

Personalized custom images in an email

SOLVE

Hey there,

I might have skipped/forgotten a few steps in the explanation it seems, but I used drag and drop yes 🙂

It seems to not work when just pasting the code into the property (I can't recall if we thought of that when doing this since we imported a huge list). But create an empty property (file: Create new EMPTY property.png) and do the following:

Multiple contacts:
I had 3000 contacts to update so I imported an .xlsx file with their email adresses in one column, named "email" and the personal code in a column named "the propertyname you chose" (In my example: "Personal image test 01" – file: Example-excelfile-import.png).

Single contact:
To change the contact property of a single contact I found that I had to do it using a workflow (file: Use-workflow-to-change-property.png)

To use it in the email I used the drag and drop field for rich text and then inserted the property through "Insert the personalization token" button (file: dragndrop-richtextfield-insert-personalization token-01.png). It should now look like the file: dragndrop-rchtextfield-insert-personalization token-02.

If you preview this as contact that has this property , it should work 🙂


rowens8
Participant | Diamond Partner
Participant | Diamond Partner

Personalized custom images in an email

SOLVE

Thanks for explaining! It was trying to copy and paste directly into the field that wasn't working for me. Using the workflow is perfect so we are good to go! 

 

Thanks for your help

0 Upvotes
kvlschaefer
Community Manager
Community Manager

Personalized custom images in an email

SOLVE

Thanks for sharing this workaround, @lmlTimolml!

 

Cheers,

Kristen 


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
MBailet
Participant

Personalized custom images in an email

SOLVE

It works thank you !

the secret was putting spaces within the brackets. 😊

Thanx

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Personalized custom images in an email

SOLVE

Hi @MBailet,

 

Your approach should actually work – I just tested this on my end with a contact property. (Could you explain why you created a company property? In any case, both should work.)

 

Just to confirm your own approach: When you work with a custom property, you need to fill this property with the image URL on each contact/company record. When the email is sent, HubSpot is pulling the link from the URL field for each contact record.

 

If that sounds correct, could you double check you're following the correct syntax, especially the space characters within the curly brackets?

<img src="{{ contact.personalisedlogo }}" alt="personalised logo">

 

How are you testing whether the images are displayed correctly? You'd have to preview the email for a specific contact:

 

karstenkoehler_0-1644921981342.png

Next screen:

karstenkoehler_1-1644922025919.png

 

 

If that doesn't work, could you share screenshots of what you're seeing?

 

There might also be other approaches but I'm not sure I fully understand you're use case. For example, if you set up the email once (with smart rules), you could clone the same email every month and not even have to maintain the URLs, potentially.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.