diff --git a/src/Base.php b/src/Base.php index fcd57e2..5b01dff 100644 --- a/src/Base.php +++ b/src/Base.php @@ -207,7 +207,7 @@ protected function getHubSpotContextCookie($form, $feed) { 'hutk' => $hubspotutk, 'ipAddress' => $ip_addr, 'pageUrl' => apply_filters( 'gf_hubspot_context_url', site_url(strtok($_SERVER['REQUEST_URI'], '?')) ), - 'pageName' => apply_filters( 'gf_hubspot_context_name', $this->getValue($form, 'title') ), + 'pageName' => apply_filters( 'gf_hubspot_context_name', get_the_title() ), ); if ( $this->getValue($feed, 'meta/disableCookie') == 1 ) { unset($hs_context['hutk']);