Using analytics to track your proofing collections

Every so often, this question pops up in our support requests:

How do you add tracking or analytics code to picu collections to track your online proofing galleries?

Until we introduce some form of analytics of our own, right inside picu, you can use the following filter to add your own tracking JS code to picu collections. This way, you can add Google Analytics, Matomo or whatever tracking solution you have set up already to get some basic numbers about the usage of your clients on your collections.

First, you need to get the JS code from your analytics solution, same as you would if you add it manually to any other page.

Next use this filter to output it on all picu collections:

function my_picu_custom_scripts( $custom_scripts ) {
    $custom_scripts .= '<strong>[YOUR ANALYTICS JS CODE]</strong>';

    return $custom_scripts;
}

add_filter( 'picu_custom_scripts', 'my_picu_custom_scripts' );Code language: PHP (php)

IMPORTANT: Make sure to add this code inside a custom plugin, or by using the Code Snippets plugin, to make sure the changes don’t get overwritten by future theme updates.

Posted in:

Related Posts

These posts could interest you as well, read on to get the full picture.

  • Update – September 2025

    This past month, we’ve been working on improving how you can get paid when selling images through picu, as well as tackling some smaller bugfixes and improvements under the hood. Let’s dive straight into what’s new. PayPal Support We’re excited to announce that picu Pro now officially supports PayPal as a payment gateway when selling…

    Read more

  • picu Pro 2.2.0 & picu 3.2.0: PayPal Support is here

    We’ve been listening to your feedback, and today we’re thrilled to announce that picu Pro 2.2.0 brings PayPal support to your photo proofing workflow. More Choice for Your Clients Your clients have different preferences when it comes to paying for their photos. Some love the simplicity of credit cards through Stripe, others prefer direct bank…

    Read more