{% styles default %}
{% styles colors %}
{% styles custom %}

{% comment %} <link rel="preconnect" href="https://fonts.googleapis.com"> {% endcomment %}
{% comment %} <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> {% endcomment %}
{% comment %} <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap" rel="stylesheet"> {% endcomment %}

<!-- Gainsight PX Tag-->
  <script type="text/javascript">
  (function(n,t,a,e,co){var i="aptrinsic";n[i]=n[i]||function(){
      (n[i].q=n[i].q||[]).push(arguments)},n[i].p=e;n[i].c=co;
    var r=t.createElement("script");r.async=!0,r.src=a+"?a="+e;
    var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)
  })(window,document,"https://web-sdk.aptrinsic.com/api/aptrinsic.js","AP-QUWV37HJ0TII-1");
</script>
<!-- Gainsight PX Tag-->

{% if current_person.groups.any? %}
	{% for groups in current_person.groups %}
	<script> console.log("Person groups are {{ groups.name }}") </script>
	{% assign group = groups.name | split: "," %}
	<script> console.log("{{ group }}") </script>
	{% endfor %}
{% else %}
	{% assign group = "None" %}
	<script> console.log("No groups found.") </script>
{% endif %}

	{% assign email_add = current_person.email | split: "@" %}
	 {% assign domain = email_add.last | split: "." %}
	 <script> console.log("{{ domain }}") </script>

<script>
aptrinsic("identify",
  {
		"id": "{{ current_person.id }}",
		"email": "{{ current_person.email }}",
		"firstName": "{{ current_person.first_name }}",
		"lastName": "{{ current_person.last_name }}",
		"signUpDate": "{{ current_person.created_at }}",
  },
  {
		"id":"{{ domain.first }}",
		"name":"{{ domain.first }}",
		"content_label": "{{ current_person.my_content_label }}"
	}
);
</script>
