Closed (fixed)
Project:
TacJS
Version:
7.0.1
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2026 at 16:09 UTC
Updated:
10 Mar 2026 at 08:20 UTC
Jump to comment: Most recent
Hello,
I have installed TACJS and activated the ‘Piano Analytics’ service.
I would like to use the ‘pa’ object to set up a tracking plan on the site (page.display, click, etc.).
However, my JS does not recognise ‘pa is not defined’.
I have tried several things:
‘dependencies’ ‘tacjs/tarteaucitron.js’ in my libraries.yml
(function ($, Drupal, tarteaucitron) {})(jQuery, Drupal, tarteaucitron); in my JS (tarteaucitron is not defined)
Changing the weight of my JS file in libraries.yml
Drupal.behaviors in my JS file
Has anyone managed to get Piano Analytics to work with TACJS?
Comments
Comment #2
mably commentedYou can give a try to this module:
https://www.drupal.org/project/tacjs_pianoanalytics
Comment #3
miki_mike commentedHello,
I use these modules : https://www.drupal.org/project/pianoanalytics and https://www.drupal.org/project/tacjs_pianoanalytics
This fixes my problem with retrieving my ‘pa’ object.
Here, this object can be retrieved as follows: window.pa
Thanks @mably
Comment #4
mably commentedYou're welcome.