Send post-commit funnels to analytics configurator
What does this MR do and why?
- Triggers a new worker when a commit is pushed, only if product analytics is enabled for a repository.
- Parses any created or changed defined funnels and sends them to the analytics-configurator.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Ensure Product Analytics is set up and configured for any project.
- Ultimate licence is required.
- Ensure the latest version of the analytics-configurator is running in your local Devkit.
- Create a new file in the repository called
.gitlab/analytics/funnels/completed_purchase.yaml
with the following contents.
name: Completed Purchase
seconds_to_convert: 3600
steps:
- name: view_page_1
target: '/page1.html'
action: 'pageview'
- name: view_page_2
target: '/page2.html'
action: 'pageview'
- When committed, check your sidekiq logs for
SyncFunnelsWorker
and check that it has executed successfully. - Also check the logs for the
analytics-configurator
to see if there was a successful call toPOST "/funnel-schemas"
Related to #438035 (closed)
Edited by Max Woolf