Skip to content

Instantly share code, notes, and snippets.

@dduran1967
Last active February 5, 2019 18:25
Show Gist options
  • Save dduran1967/8ed032df9cfce32223b03664c5ed9178 to your computer and use it in GitHub Desktop.
Save dduran1967/8ed032df9cfce32223b03664c5ed9178 to your computer and use it in GitHub Desktop.

Event Message Review

Event Summary:

  • the website vistor Dave Duran (event.agent = Dave Duran)
  • asked clicked the 'contact an agent button' (event.type = AskAction)
  • Jenny Shoop (event.recipient = Jenny Shoop) format: {ContactID}.bhhs.hsfaffiliates.com/profile/card#me
  • about 14260 waterway boulevard (event.about = ) Note: format for listing ids needs to be finalized
  • on the affiliate website listing detail page (event.instrument = https://ingite.bhhs..)

Event Data (v1)

'@context': 'http://schema.org'
'@type': AskAction
description: A EMAIL lead from the AGENT LISTINGS
sameAs: 'https://api.smarteragent.com/1.0/prospects/5055678202224187948'
agent:
  '@type': Person
  identifier:
      SAAppCode: BHHSPA301
      usID: '5055677723874308357'
  familyName: Duran
  telephone: '4084828947'
  email: dave@yodata.io
  givenName: Dave
about:
  listingAgent:
      identifier:
          thirdPartyID: '356066'
      sameAs: 'https://api.smarteragent.com/1.0/agent/356066'
      familyName: Shopp
      telephone: (317) 440-5840
      '@type': RealEstateAgent
      givenName: Jennifer
      email: jenny@shopphomes.com
  location:
      addressLocality: Fishers
      sameAs: 'https://api.smarteranget.com/1.0/properties/2136054501'
      price: '635000.0'
      beds: '5.0'
      addressRegion: IN
      streetAddress: 14260 Waterway Boulevard
      baths: '5.0'
      postalCode: '46040'
      identifier:
          propertyID: '2136054501'
          listingID: '21599055'
          listingKey: '67719123'
      '@type': Place
  referredBy:
      name: 'Fox & Roach, REALTORS'
      sameAs: 'https://api.smarteragent.com/1.0/agent/11413100431000010000'
      telephone: '8004517356'
      email: clientservices@foxroach.com
      location:
          addressLocality: Devon
          addressRegion: PA
          streetAddress: 431 W. Lancaster Ave.
          postalCode: '19333'
      identifier:
          thridPartyID: PA301
          SAAppCode: BHHSPA301
      '@type': RealEstateAgent
  listingOffice:
      sameAs: 'https://api.smarteragent.com/1.0/office/IN302-010'
      identifier:
          thridPartyID: IN302-010
      '@type': Organization
instrument: BHHS Mobile APP
startTime: '2019-02-05T17:10:07Z'
message: |-
    Name: Dave Duran
    Email: dave@yodata.io
    Phone: 408-482-8947
    Message Content
identifier:
  refAgentID: '11413100431000010000'
  recipientBrandingID: '11413101331001210046'
  actionID: '5055678202224187948'
  refCompanyID: BHHS02
recipient:
    '@id': 'https://PA301.ds.bhhsresource.com/profile/card#me'
    '@type': RealEstateAgent
    name: 'Fox & Roach, REALTORS'
    sameAs: 'https://api.smarteragent.com/1.0/agent/11413100431000010000'
    telephone: '8004517356'
    email: clientservices@foxroach.com
    addressLocality: Devon
    addressRegion: PA
    streetAddress: 431 W. Lancaster Ave.
    postalCode: '19333'
    identifier:
        thridPartyID: PA301
        SAAppCode: BHHSPA301
@dduran1967
Copy link
Author

Overall this is pretty good, here are a few items for discussion/consideration

  1. event.recipient can be reduced to https://PA301.ds.bhhsresource.com/profile/card#me. The rest of the information for that affiliate can be pulled from URI

  2. is the recipient really the affiliate and not the agent?

  3. about can be reduced down to the listing detail page making the messages smaller and simpler for producers. IF the listing detail page includes the structured data. And if the new website doesn't have structured data, then it needs to be added to the project requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment