The getPercentPageViewed
plug-in measures a visitor’s scroll activity to see how much of a page they view before moving on to another page. This plug-in is not necessary if your pages are small in height or do not want to measure scroll activity.
Step 1
Follow the code installation steps here getPercentageViewed
Step 2
Create the classification for the Analytics variable as shown below:
Note : You can opt for traffic or conversion variables as decided by the Business Consultant.
Step 3
Setup the Rule Builder for classification:
Following are the details :
- s._ppvPreviousPage: The name of the previous page viewed. Final scrolling measurements for the current page aren’t available until after a new page loads.
- s._ppvHighestPercentViewed: The highest percent of the previous page that the visitor viewed (height-wise). The furthest point that the visitor scrolled down to on the previous page.
- s._ppvInitialPercentViewed: The percent of the previous page that was visible when the previous page first loaded.
- s._ppvHighestPixelsSeen: The highest number of total pixels seen (height-wise) as the visitor scrolled down the previous page.
- s._ppvFoldsSeen: The highest number of “page folds” reached as the visitor scrolled down the previous page. This variable includes the “top-of-page” fold.
- s._ppvFoldsAvailable: The number of total “page folds” available to scroll down on the previous page.
^(.*)\|(.*)\|(.*)\|(.*)$ -> for the main classification
Following for the buckets In respective orders
(highestPercentViewed)=\b(0?[1-9]|1[0-9]|2[0-5])\b
(highestPercentViewed)=\b(2[6-9]|3[0-9]|4[0-9]|50)\b
(highestPercentViewed)=\b(5[1-9]|6[0-9]|7[0-5])\b
(highestPercentViewed)=\b(7[6-9]|8[0-9]|9[0-9]|100)\b
Step 4
Check the report as shown below:
Hope these steps will help to set up the plugin, in case of any question or doubt, comment below.
I am currently capturing the Page view percentage in this format 65|34 (Highest | Initial) — if I have to break this in to buckets, how can I do it? Can you please help me with the regex that I need to use?