diff --git a/sendgrid/helpers/mail/ganalytics.py b/sendgrid/helpers/mail/ganalytics.py index f1e88f4b9..5f6327154 100644 --- a/sendgrid/helpers/mail/ganalytics.py +++ b/sendgrid/helpers/mail/ganalytics.py @@ -168,7 +168,7 @@ def get(self): for key in keys: value = getattr(self, key, None) if value is not None: - if isinstance(value, bool): + if isinstance(value, bool) or isinstance(value, str): ganalytics[key] = value else: ganalytics[key] = value.get()