Developer forum

Forum » Development » Custom split test parameter

Custom split test parameter

Anders Ebdrup
Reply

Hi Dw,

 

Is it possible to extend the split test parameters so I e.g. can test on a custom variable? Right now I have to test which variant combination is performing the best.

 

Best regards, Anders


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Anders

You should be able to implement a ConversionGoalProvider.

Attached 2 examples of implementations.

BR Nicolai

Votes for this answer: 1
 
Anders Ebdrup
Reply

Thank you very much for quick and useful response!

 

Best regards, Anders

 
Mikkel Ulstrup
Reply

Hi Nicolai,

 

I have tried to create a custom split test provider, but we cannot access the internal method:

Dynamicweb.Analytics.Tracker()

 

Besides we have trouble seeing the new custom provider when setting up the split test as I cannot see the goal provider in the wizard under: Identify conversion goal...

 

This is my code:

    [AddInName("TrackItemCreated")] 
    [AddInGroup("ConversionGoalProvider")]
    [AddInLabel("Item created")]
    [AddInDescription("Track if an item is created")]
    public class ItemCreatedGoalProvider : ConversionGoalProvider
    {
        public override bool TrackGoal(string goalValue)
        {
            var result = false;

            //var tracker = new Dynamicweb.Analytics.Tracker();

            return base.TrackGoal(goalValue);
        }
    }

 

Best regards, Mikkel

 
Anders Ebdrup
Reply

Hi Nicolai,

 

We were missing this action attribute:

[AddInIgnore(false)]

 

It would be great if the field : [OMCExperiment].[OMCExperimentGoalType] could be greater than 50 char as the namespace can be pretty long in the solution.

 

Best regards, Anders

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Have you had a change to look at this?

The field [OMCExperiment].[OMCExperimentGoalType] should be greater than 50 char as the namespace can be pretty long in the solution.

 

Best regards, Andes

 

You must be logged in to post in the forum