Skip to content

Commit

Permalink
add assay type and dataset into ga4 e-commerce product as well
Browse files Browse the repository at this point in the history
  • Loading branch information
utku-ozturk committed Jun 4, 2024
1 parent 5701701 commit f1cf162
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ encoded-core
Change Log
----------

0.9.4
=====

* adds ``assay type`` and ``dataset`` dimension to GA4 e-commerce product item object


0.9.3
=====

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "encoded-core"
version = "0.9.3"
version = "0.9.4"
description = "Core data models for Park Lab ENCODE based projects"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions src/encoded_core/file_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ def update_google_analytics(context, request, ga_config, filename, file_size_dow
"item_category": item_types[0] if len(item_types) >= 1 else "Unknown",
"item_category2": item_types[1] if len(item_types) >= 2 else "Unknown",
"item_category3": item_types[2] if len(item_types) >= 3 else "Unknown",
"item_category4": exp_or_assay_type or "None",
"item_category5": dataset or "None",
"item_brand": submitter_title or "None",
"item_variant": file_type,
"quantity": 1
Expand Down

0 comments on commit f1cf162

Please sign in to comment.