Segmenting a Decrease Bounce Rate Goal

Issue

There is currently no one-step way of configuring a Decrease Bounce Rate goal per device (desktop, mobile, tablet) within the app.

The following solution allows you to create Decrease Bounce Rate goals for different type of devices: desktop, mobile, and tablet.

*Be aware that a device can be classified in more than one category.

Solution

    1. First, create a Custom JavaScript goal from the goal templates and attach it to your experiment.



    2. After you create it, copy the ID of your goal. You can find the ID if you reopen the goal after creating and saving it.




    3. Then, you will have to add the following code to the Global JavaScript section of your Project. You can find this section by clicking on the Setting menu item on the left sidebar and scrolling down to the Global JavaScript text box.

      Un-comment the appropriate line for the segmentation of the type of device type you want to track. Only leave one un-commented; otherwise this solution code will not work properly.

      See the Pen Decrease Bounce Rate Device Segmented Goal Code by Convert.com (@gcrewe) on CodePen.


      You can make sure that you did not make any syntax errors in the code by checking it in the browser console. Just paste the code and press enter. You should see any errors you might have introduced while editing it. 

      Now you are ready to go!

Have more questions? Submit a request

Comments