Commit 449d1aed authored by Denys Mishunov's avatar Denys Mishunov

Merge branch '342993-set-values-for-standardcontext-in-frontend' into 'master'

Set values for StandardContext in Frontend

See merge request gitlab-org/gitlab!72660
parents b2c5d358 ea265ecd
......@@ -10,5 +10,6 @@
window.snowplowOptions = #{Gitlab::Tracking.options(@group).to_json}
gl = window.gl || {};
gl.snowplowStandardContext = #{Gitlab::Tracking::StandardContext.new.to_context.to_json.to_json}
gl.snowplowStandardContext = #{Gitlab::Tracking::StandardContext.new(namespace: @group || @project&.namespace,
project: @project, user: current_user).to_context.to_json.to_json}
gl.snowplowPseudonymizedPageUrl = #{masked_page_url.to_json};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment