Remove story macros from url-replacments#26188
Remove story macros from url-replacments#26188micajuine-ho merged 10 commits intoampproject:masterfrom
Conversation
|
LGTM. cc @Enriqe and @gmajoulet |
|
I'm not very familiar with the URL replacement mechanism, could you please point me to where we do this in the story analytics service (or any other file) please? |
The url-replacement service gets the So that is why isn't returning anything in the analytics request. |
|
Sounds good, thanks for explaining. Yuxuan mentioned that "the macro should be registered within the story analytics service. That's already the case today, so we are simply removing the two variables from the global service" and I was wondering how this was working? Thanks! |
|
@gmajoulet The This variable service is picked up by amp-analytics so that it can expand those variables when a request contains them. So by removing them from the global variable source, you always have to use the amp-analytics version of the variable (${storyPageId}) instead of the macro platform version (STORY_PAGE_ID). No fix will be needed |
|
I believe when #11528 was introduced, we haven't introduced any story events yet. So everything was aggregated to global service. Then we introduced all the story related events, for example Examples, This would work |
Project Tracker: #26091
Remove
STORY_PAGE_IDandSTORY_PAGE_INDEXmacros from url-replacements.js because they are currently broken and amp-story's variable service contains these variables already.