footer
contains the site-wide footer for both default and AMP pages. Simply pass in an isAmp
prop to get the AMP footer. This comes with analytics tid's and CCPA logic baked in.
Usage
Default
See the full default footer implementation in the storybook;
import { Footer } from "@washingtonpost/site-components/core/footer"
<Footer isAmp={false} />
Tracking + CCPA
Tracking
- On AMP footer links, the
?tid=a_inl-amp&itid=a_inl-amp
query param is appended to each link for analytics tracking.
CCPA
- On both AMP and default footers, the components checks for the presence of the
wapo_identity
in local storage and respective keys geoState
and addressState
. If either key matches CA
the "Do Not Sell My Info" link will display to comply with CA privacy laws.
Build
parcel build 'ui/*/' --log-level verbose --no-cache