Skip to content

Commit

Permalink
Merge pull request #5 from nypublicradio/mwalsh/GT-1041_newsletter-wi…
Browse files Browse the repository at this point in the history
…dget-analytics

Check for mailchimpName property
  • Loading branch information
walsh9 authored Nov 14, 2018
2 parents fe0c4d5 + 3e26ed2 commit c56aeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NewsletterSignup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class NewsletterSignup extends WidgetBase {

if (window.dataLayer) {
window.dataLayer.push({mailchimpId: this.props.mailchimpId});
if (mailchimpName) {
if (this.props.mailchimpName) {
window.dataLayer.push({mailchimpName: this.props.mailchimpName});
}
}
Expand Down

0 comments on commit c56aeb3

Please sign in to comment.