Embed Notes
The purpose of these pages is to have something that we can use to test things like widgets, microsites, syndicated pages, etc. in terms of functionality as well as for metrics testing.
One thing that I noticed for these test pages is that we are using standard/production embed code when putting these elements into the pages. The problem with doing that is this embed code points to something like https://t.cdc.gov/1M1B which will always serve the production version of the widget/microsite.
So… for these test pages only, please do not use the embed code from the PHML “as-is”. Please change any reference that points to https://t.cdc.gov/1M1B (or any 1M1B reference) with “/TemplatePackage/contrib/widgets/tp-widget-external-loader.js”.
For example, coronavirus microsite, do not use:
<div data-cdc-widget=”micrositeCollectionViewerMed” data-cdc-dataid=”404908″ data-cdc-theme=”theme1″ data-cdc-geotag=”{‘continent’: ‘6255149’, ‘country’: ‘6252001’, ‘state’: ”, ‘region’: ” }” ></div>
<script src=’//t.cdc.gov/1M1B’ ></script>
Instead use:
<div data-cdc-widget=”micrositeCollectionViewerMed” data-cdc-dataid=”404908″ data-cdc-theme=”theme1″ data-cdc-geotag=”{‘continent’: ‘6255149’, ‘country’: ‘6252001’, ‘state’: ”, ‘region’: ” }” ></div>
<script src=”/TemplatePackage/contrib/widgets/tp-widget-external-loader.js”></script>
This will allow us to test things on wwwdev.cdc.gov and static.prototype.cdc.gov using that actual non-production widget code that we are actually trying to test!