-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate analytics events in access: events and NO data #1890
Conversation
@@ -161,6 +169,13 @@ export class AccessService { | |||
|
|||
/** @private {?Promise} */ | |||
this.loginPromise_ = null; | |||
|
|||
/** @private {!Promise<InstrumentationService>} */ | |||
this.analyticsPromise_ = analyticsFor(this.win); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its mandatory to exist, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
This looks great. Regarding docs. Maybe this should live with access docs? The docs here https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-analytics.md#triggers need a rework I think @rudygalfi. The available events should probably get their own heading. |
@cramforce Revised doc: #1897 |
@cramforce @rudygalfi Alright. I will add docs in the access spec and make references from analytics docs there. |
Sorry, forgot to give my take on the docs question. TL;DR: Agree with putting this in the access docs but may have further feedback on location once there's a draft to review. I definitely think we should consolidate the key points regarding analytics for access in the access docs. That way it's discoverable by the people who are using the access solution. I think this would cover topics like the new trigger types and AUTHDATA variable. There may be other things. I would also recommend incorporating documentation into the amp-analytics.md and substitutions files for completeness. It doesn't need to cover these things in depth. We could link off to the access docs to do that. It's a bit hard to suggest exactly how this should be handled, so I'd recommend preparing docs mainly in the access docs as you suggest @dvoytenko and we can discuss further in the review stages. |
11645a3
to
c819c0b
Compare
@cramforce @rudygalfi I added One question: I'm wondering if we should get rid of the |
77e3751
to
29c3984
Compare
LGTM |
29c3984
to
10b5473
Compare
10b5473
to
ebcd63c
Compare
Propagate analytics events in access: events and NO data
/cc @avimehta