Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -1661,4 +1661,25 @@ HTML,
|
||||
}
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=settings&controller=dataLayer&tab=handlers' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the data layer properties used when viewing a member's profile
|
||||
*
|
||||
* @param \IPS\Member $member The member
|
||||
* @param array $additionalProperties Optional: Any additional properties to set (e.g. view location)
|
||||
* @return array
|
||||
*/
|
||||
public function getMemberProfileEventProperties( \IPS\Member $member, array $additionalProperties=array() ) : array
|
||||
{
|
||||
$profileId = $member->members_bitoptions['datalayer_pii_optout'] ? '' : \IPS\core\DataLayer::i()->getSsoId($member->member_id);
|
||||
$properties = array(
|
||||
'profile_group' => \IPS\Member\Group::load( $member->member_group_id )->formattedName,
|
||||
'profile_group_id' => $member->member_group_id ?: null,
|
||||
'profile_name' => $profileId ? $member->real_name : null,
|
||||
'profile_id' => $profileId ?: null,
|
||||
);
|
||||
|
||||
array_replace( $properties, $additionalProperties );
|
||||
return $properties;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user