Skip to content
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

Merged
merged 1 commit into from
Feb 12, 2016

Conversation

dvoytenko
Copy link
Contributor

/cc @avimehta

@@ -161,6 +169,13 @@ export class AccessService {

/** @private {?Promise} */
this.loginPromise_ = null;

/** @private {!Promise<InstrumentationService>} */
this.analyticsPromise_ = analyticsFor(this.win);
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct.

@cramforce
Copy link
Member

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.

@rudygalfi
Copy link
Contributor

@cramforce Revised doc: #1897

@dvoytenko
Copy link
Contributor Author

@cramforce @rudygalfi Alright. I will add docs in the access spec and make references from analytics docs there.

@rudygalfi
Copy link
Contributor

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.

@dvoytenko
Copy link
Contributor Author

@cramforce @rudygalfi I added amp-access-analytics.md docs file and linked it from the access and analytics specs. PTAL.

One question: I'm wondering if we should get rid of the amp- prefix in all the events.

@cramforce
Copy link
Member

LGTM

dvoytenko added a commit that referenced this pull request Feb 12, 2016
Propagate analytics events in access: events and NO data
@dvoytenko dvoytenko merged commit e9d7479 into ampproject:master Feb 12, 2016
@dvoytenko dvoytenko deleted the access27-events2 branch February 12, 2016 00:01
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