Explain test brand cloud exact keyword second?

149    Asked by ClaudineTippins in Salesforce , Asked on Feb 7, 2023

We would like to do an A/B Test using two different subject lines (Which is easy). We also want one of the subject lines to contain personalisation (which is also easy). However not everyone has a first name specified.


When using A/B subject line testing are you able to use AMP scripting in the subject line - so we can add the logic of 'IF FIRSTNAME IS EMPTY THEN SAY 'XXXX' ELSE 'Hi %%firstName, here is your subject line'.


I have tried setting it up - has anyone successfully added AMP scripting in the subject line whilst using AB split testing?

Answered by Cameron Oliver

Regarding test brand cloud exact keyword second:


In the HTML I included the following code which specifies the 2 different subject lines.
%%[ SET @firstName = [firstName] SET @Subject1 = Concat(v(@firstName),", Don't miss out on these offers") SET @Subject2 = "You have no first name " ]%%
Then in the A/B split test - I set one of the subject lines to: %%[ if not empty(@firstName) then ]%%%%= v(@Subject1) =%%%%[ else ]%%%%= v(@Subject2) =%%%%[ endif]%%
So if the firstname is NOT empty then pull in Subject 1, otherwise pull in Subject 2.
Seemed to work - have done a full test and the AB test worked fine - and all the proofs were as expected. Let me know if anyone else can think of an easier way.

Your Answer

Interviews

Parent Categories