Skip to content

add support for piano analytics#2075

Closed
nathangoulding wants to merge 4 commits intoampproject:masterfrom
nathangoulding:piano-analytics-rebased
Closed

add support for piano analytics#2075
nathangoulding wants to merge 4 commits intoampproject:masterfrom
nathangoulding:piano-analytics-rebased

Conversation

@nathangoulding
Copy link
Copy Markdown

Tracked in issue: #1769

@cramforce
Copy link
Copy Markdown
Member

Moved to #2075

@cramforce cramforce closed this Feb 18, 2016
@avimehta
Copy link
Copy Markdown
Contributor

@cramforce was this closed by mistake? I can't find the correct PR to review.

@rudygalfi rudygalfi reopened this Feb 19, 2016
@rudygalfi
Copy link
Copy Markdown
Contributor

Re-opening as I believe this was closed by mistake.

}
</script>
</amp-analytics>
<!-- End Piano example -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There doesn't seem to be a start tag for this. Want to add

<!-- Start Piano example -->

before the example?

@nathangoulding
Copy link
Copy Markdown
Author

PTAL

'requests': {
'host': 'https://api-v3.tinypass.com',
'basePrefix': '/api/v3',
'baseSuffix': '&pageview_id=${pageViewId}&rand=${random}',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks unused. Did you mean to have it on the pageview request below?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ah yes, thanks for catching this.

@rudygalfi
Copy link
Copy Markdown
Contributor

A couple more small things.

@avimehta PTAL as well

'timezone_offset=${timezone}&tags=${tags}&amp_url=${ampdocUrl}&' +
'screen=${screenWidth}x${screenHeight}',
},
'transport': {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The defaults will take care of this if all the values are true. Feel free to remove this section.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

OK will do. As per the previous code review, after I remove the transport block, should I keep the trailing comma at the end of the requests?

@avimehta
Copy link
Copy Markdown
Contributor

lgtm. (assuming the comments above are addressed.)

@nathangoulding
Copy link
Copy Markdown
Author

I'll rebase again and open another PR.

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.

4 participants