Problem/Motivation

Attempting to use Hubspot tracking code.

Steps to reproduce

Go to /admin/config/services/hubspot and enable Tracking Code. Visit homepage and notice js error due to incorrect URL to tracking script, ie https://js.hs-scripts.com/.js which is caused by a missing Portal Id value in hubspot_library_info_build().

Proposed resolution

Code is looking for the incorrect config key for the Portal ID value. Currently it is looking for hubspot_portalid but it should be hubspot_portal_id.

CommentFileSizeAuthor
#2 fix-portal-id-config-key-3217311-1.patch582 bytesfocal55

Comments

focal55 created an issue. See original summary.

focal55’s picture

StatusFileSize
new582 bytes

The attached patch resolves the incorrect config key.

  • richgerdes committed 1e67356 on 8.x-1.x authored by focal55
    Issue #3217311 by focal55: Library hook referencing incorrect config key
    

  • richgerdes committed d3138f8 on 3.x authored by focal55
    Issue #3217311 by focal55: Library hook referencing incorrect config key
    
richgerdes’s picture

Status: Active » Fixed

@focal55, thanks for catching this. I've committed your patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.