Skip to content

Conversation

@achpsident
Copy link

This is based on doorkeeper#19. The PR has been open for over a year, with no perceived movement, so instead we'll update our fork of event_tracker to the latest and include this PR's contents.

This based on doorkeeper#19. The PR has
been open for over a year, with no perceived movement, so instead we'll update
our fork of event_tracker to the latest and include this PR's contents.
@achpsident achpsident force-pushed the feature/add_google_analytics4_support branch from 989fbf6 to da50f90 Compare July 9, 2024 01:34
@achpsident achpsident force-pushed the feature/add_google_analytics4_support branch 2 times, most recently from ec1e068 to dce3d2d Compare August 22, 2024 03:47

def track(event_name, properties = {})
%Q{ga('event_tracker.send', 'event', 'event_tracker', '#{event_name}');}
properties_js = properties.to_json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd call the temp properties_json for consistency.

But remember the refactoring pair: Inline Temp vs. Introduce Explanatory Variable. And properties_json isn't really doing any explaining compared to properties.to_json.

So... Inline Temp?

@achpsident
Copy link
Author

Unfortunately, it appears as if the tentative PR that added Google Analytics 4
neglected to properly load gtag. This commit fixes the problem.
@achpsident achpsident force-pushed the feature/add_google_analytics4_support branch from 4bbc7ad to db63627 Compare August 23, 2024 00:49
@achpsident achpsident merged commit 54f8185 into master Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants