I am using the script and modified it to my needs:
%%[ /*Sets de AB */ set @modtarget = AttributeValue("_customObjectKey") if not empty(@modtarget) then if mod(@modtarget, 2) == 0 then /* even */ set @randomAB = "1" else /* oneven */ set @randomAB = "2" endif endif ]%%
In my sendlog the field randomAB exists. I am using this so I can query the sendlog with data views. It works but ofcourse every record will be stored with 1 or 2 in the randomAB field within the sendlog even when I am not using it in an AB test. Is there a way to only add the 1 or 2 to a specific piece so that not every email results in a 1 or 2. For example:
I have a dynamic title in my email. There are, lets say, 10 different titles. Based on the data you will got one of these titles. I want to AB test title 1. So only the records that are using version 1 or 2 of title 1 should be stored with 1 or 2 in the randomAB field within the sendlog. The default of randomAB in the sendlog is set to 0. So every record that has title 2-10 should be stored with 0 in the sendlog (hopefully this make sense). Is this possible?