Switching to old video tracking

Estimated reading time: 1 min

Upgrading to GrassBlade xAPI Companion v2.0 or higher will change the way your videos are tracked.

The new advanced video tracking has a lot of features and in most cases you will not face any issues.

However, if you are using the LRS statements directly, or for any other reasons if you want to switch to old video tracking method, you can quickly switch back by following these steps.

Step 1: Using your favourite tool to edit files (FTP, cPanel, or anything else), go to your theme’s folder. It will be inside /wp-content/themes/<your theme’s folder>

Step 2: Edit the functions.php file there.

Step 3: Add the following line of code at the end of the file.

//Switch back to old video tracking - GrassBlade xAPI Companion add_filter( "grassblade_video_player", function($v2, $v1, $shortcode_atts, $attr) { return $v1; }, 10, 4);

You are done. Make sure to test if everything is working as expected.

Feel free to get back to us if you need any help.

Was this article helpful?
Dislike 0 0 of 0 found this article helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *