Hello everyone,
I am working on enabling bitstream download tracking in DSpace 8.1 with Google Analytics 4. I managed to get GA4 to count downloads (the item event shows up), but I cannot break them down by document/file: in the reports I only see the total number.
Environment / Current configuration
DSpace 8.1
GA4 already integrated (no GTM for downloads, to avoid double counting)
In local.cfg / dspace.cfg:
Services restarted.
Tested with downloads from bitstreams in the ORIGINAL bundle.
What I see
In Reports → Engagement → Events, the item event shows up with N events (e.g., 12).
In Explore (Free form) I tried creating custom dimensions to expose event parameters (e.g., event_label / label, event_action / action, event_category / category, document_path / document_title), but the table shows (not set) in those columns.
In DebugView I can see the item event arriving, but I cannot reliably identify which parameter contains the downloaded file/item name to use as a dimension.
Additional tests
Sent a test event through Measurement Protocol (with debug_mode) to check parameters:
(Validation succeeds, but I still cannot get a per-file breakdown in the standard reports.)
Questions
What are the exact parameter names that DSpace 8.1 sends with the item event for downloads (document_path / document_title? label / event_label? others)?
What is the recommended way in GA4 to list downloads by document/file (exact dimensions and filters in “Explore” or “Events”)?
Do I need any additional configuration in dspace.cfg to include the bitstream filename (e.g., in label), or is registering custom dimensions enough?
Is there any log or way to trace from DSpace the payload being sent to GA4 to confirm the actual parameters (besides DebugView)?
Any guidance or concrete examples (parameter names + a screenshot of an exploration) would be very helpful to resolve this.
Thanks in advance!
Best regards,
Rikchard